Not able to connect adb after upgrate Android Studio to 3.4

后端 未结 17 1451
南方客
南方客 2020-12-02 16:34

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

相关标签:
17条回答
  • 2020-12-02 17:16

    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:

    1. Uninstall current Android Studio
    2. Go to Android Studio Archive and download any older version
    3. After installation, Open the project. You might see an error like this

    This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer.

    1. Now, open project gradle and update classpath 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.

    0 讨论(0)
  • 2020-12-02 17:18

    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.

    0 讨论(0)
  • 2020-12-02 17:20

    EndTask adb.exe from Background processes (TaskManager) and Run Application again. It works for me

    0 讨论(0)
  • 2020-12-02 17:27

    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.

    0 讨论(0)
  • 2020-12-02 17:29

    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

    0 讨论(0)
  • 2020-12-02 17:31

    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

    0 讨论(0)
提交回复
热议问题