Not able to connect adb after upgrate Android Studio to 3.4

后端 未结 17 1480
南方客
南方客 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:32

    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)

    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.

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

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

    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 :)

    So that's all. Enjoy. Happy coding

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

    It worked for me by selecting -> Use libusb backend

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

    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.

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

    I faced this issue last night, and I tried these methods to fix:

    • download older platform-tools and place it in the android sdk folder.(not work for me)
    • adb kill-server, adb start-server.(not work for me, adb had no response with these cmd)
    • kill the process that occupies port 5037.(for me, there is no other .exe run at this port)
    • reinstall platform-tools in Android Studio.(not work)
    • download ADB Kits and replace them in platform-tools folder.(work!!!)

    It seems that my adb file has been modified or replaced by some programs. You can try these methods, and I hope some of them can work for you.

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

    I had this issue only after a Genymotion update, on Mac.

    What worked for me: Open Genymotion preferences, Select ADB, choose "Use custom Android SDK tools" and points to your Android SDK folder.

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