Android Studio - ADB launch server crashes, adbkey verification fails

Problem : adb start server is not working.

--- adb starting (pid 1414) --- adb I 12-05 17:28:30 1414 48453 main.cpp:57] Android Debug Bridge version 1.0.39 adb I 12-05 17:28:30 1414 48453 main.cpp:57] Version 27.0.0-4455170 adb I 12-05 17:28:30 1414 48453 main.cpp:57] Installed as /Users/[username]/Library/Android/sdk/platform-tools/adb adb I 12-05 17:28:30 1414 48453 main.cpp:57] adb I 12-05 17:28:30 1414 48453 adb_auth_host.cpp:416] adb_auth_init... adb I 12-05 17:28:30 1414 48453 adb_auth_host.cpp:174] read_key_file '/Users/[username]/.android/adbkey'... adb F 12-05 17:28:30 1414 48466 transport_usb.cpp:37] Check failed: usb_packet_size < 4096ULL (usb_packet_size=5120, 4096ULL=4096) 

Catalyst : installing platform tools v27.0.0

Solutions fixed : rebooting Android Studio, restarting the computer, manually launching ADB through the terminal, removing / Users / [username] /. Android / adbkey and adbkey.pub and reinstalling platform tools

Also I do not use genymotion, just a stock emulator.

+63
android-studio adb macos
Dec 06 '17 at 1:39 on
source share
4 answers

bug with the latest version of platform tools (27.0.0), the solution I found was to upgrade to the previous version.

Delete the current platform-tools directory located in the android-sdk directory, then download the older version from here:

[Refresh] . Some users (including me) noticed that the problem only occurs when your phone is connected, so if you do not need to test on it, try disconnecting it and use the emulator. It is also worth noting that all reported devices were from the Google Pixel line, so other devices may not cause problems.

[Update 2] : this, apparently, is solved in the last update of the platform-tools (27.0.1) .

+79
Dec 06 '17 at 3:27
source share

To add an answer, here are a few quick rollback commands on Mac computers. This has been borrowed and fixed from a useful message in the error tracker.

 cd $ANDROID_HOME && rm -rf platform-tools/ && curl https://dl.google.com/android/repository/platform-tools_r26.0.2-darwin.zip -o platform-tools_r26.0.2-darwin.zip && unzip platform-tools_r26.0.2-darwin.zip 
+21
Dec 07 '17 at 18:50
source share

I ran into the same problem.

I got 27.0.0 to work with "Cancel USB debugging authorization" in the "Debugging options" section on the phone and rebooting the phone and rebooting the Mac. And it worked.

However, I switched to not using the docking station and connecting the Pixel directly to the MacBook (USB-C), as I previously suspected it. But this is not my normal connection.

When I switched back to the dock, the whole problem started again.

So, I will return to 26.0.2

+1
Dec 09 '17 at 18:13
source share

I had the same problem after upgrading to API 27. I also have a Pixel that was connected at the time. Disconnecting the device and starting the adb server manually using adb start-server worked for me.

0
Dec 20 '17 at 20:12
source share



All Articles