Not able to connect adb after upgrate Android Studio to 3.4

unable to connect to adb.check the event log for a possible issue, verify that localhost entry is pointing to 127.0.0.1 or:: 1 for ipv4 or ipv6

enter image description here

Tried adb kill-server, restart, invalidate restart nothing works. Same issue reported over here https://issuetracker.google.com/issues/130791561

Note: I have not added any file or anything in studio, it's fresh installed Studio after format a full system still issue is there.


Solution 1:

Replace your platform-tools with this one and delete the other one. https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip

Solution 2:

I was also facing this issue in android Studio 3.4 version, but now I have fixed it , if you are using windows then follow these steps:

  1. Download Platform tools from here https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip

  2. Extract downloaded zip file

  3. Go To location "C:\Users\your_computer_user_name\AppData\Local\Android\Sdk" and Delete "Platform tools" folder

  4. Copy and Paste, downloaded platform tool folder to above location

  5. Now Go to your android studio and Rebuild your project Then run.

Solution 3:

For Mac Users, follow these simple steps :

  1. Just simply Navigate to Tools > SDK Manager> Android SDK>, then click on the Tab of SDK Tools, then look for Android SDK Platform-tools and update it.

  2. Then the last step, Invalidate cache and restart your IDE, after that, then finally you restart your Mac. (Sometimes it's this step is unnecessary)

It will work out successfully.

enter image description here

Solution 4:

Solution for Linux Users.

System info: Linux Mint Cinnamon 19.1 , Android Studio 3.4.1

Issue description: Problem with platform tools.

Solution: Remove the folder manually and update SDK tools through Android Studio.

Step 1: Go to your Android SDK installation folder. By default under your home directory. Choose platform-tools and simply delete. (/home//Android/SDK)

enter image description here

Step 2: Open Android Studio and go to SDK Tools. (File -> Settings -> Appearance & Behaviour -> System Settings -> Android SDK -> SDK Tools) By the moment you should be able to see Android SDK Platform Tools line unchecked.

enter image description here

Step 3: Put a check to install Platform Tools and press OK. Notice it'll relocate the folder to the directory where deleted.

enter image description here

Now that you re-installed the platform tools, restart the Android Studio and your deployment targets should show up.

enter image description here

If you don't install the platform tool back and ever try to build or run a project you'll get this IDE error. Just FYI :)

enter image description here

So that's all. Enjoy. Happy coding

Solution 5:

If you use Windows, you might have a corruption in api-ms-win-crt-runtime-l1-1-0.dll. Try to update it - you can get the update from Microsoft's website.

You should check it - path/to/sdk/platform-tools and try to run adb.exe