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
If non of the above answers worked for you (as same happend to me), down grade to the old version of Android Studio by following these steps:
This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer.
tools.build
version. I.e. in my case Android studio version is 3.2
and classpath 3.2.1
Hope it might save someone time.
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:
Download Platform tools from here https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip
Extract downloaded zip file
Go To location "C:\Users\your_computer_user_name\AppData\Local\Android\Sdk" and Delete "Platform tools" folder
Copy and Paste, downloaded platform tool folder to above location
Now Go to your android studio and Rebuild your project Then run.
EndTask adb.exe from Background processes (TaskManager) and Run Application again. It works for me
If you are using Genymotion, there is an update that fix the problem.
Genymotion 3.0.2 (April 18th, 2019)
Corrections
We have fixed an incompatibility with the adb tool bundled in the platform-tools 28.0.2 package of the Android SDK, which caused failures to start virtual devices.
This new version of adb changed the behavior of the “adb connect :” command by making the “port” part mandatory. This broke Genymotion Desktop in a few places where it did not pass the port. We have adjusted the way we call “adb connect” and also updated the version we ship with the product to match the one in platform-tools 28.0.2.
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
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