欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

ADB server version (36) doesn't match this client (39) {Not using Genymotion}

ADB server version (36) doesn't match this client (39) {Not using Genymotion}

 

After installing the Android O preview on a test device my ADB stopped working and started giving me this error.

adb server version (36) doesn't match this client (39); killing... adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:333] Could not open interface: e00002c5 adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:294] Could not find device interface error: could not install *smartsocket* listener: Address already in use ADB server didn't ACK * failed to start daemon * error: cannot connect to daemon

The only answers I have come across on this issue referred to Genymotion being out of sync with ADB but I don’t use Genymotion. Any help would be greatly appreciated. I have already wiped and reinstalled Android Studio as well as all of its tools and settings yet seem to still have this issue.

 
 

3 Answers  正确答案 

In my case this error occured when I set up my environment adb path as ~/.android-sdk/platform-tools (which happens when e.g. android-platform-tools is installed via homebrew), which version was 36, but Android Studio project has Android SDK next path ~/Library/Android/sdk which adb version was 39.

I have changed my PATH to platform-tools to ~/Library/Android/sdk/platform-tools and error was solved
在我的情况下,当我设置我的环境adb路径~/.android-sdk/platform-tools(这发生在例如android-platform-tools通过homebrew安装)发生时,这个错误,哪个版本是36,但Android Studio项目有Android SDK下一个路径~/Library/Android/sdk哪个adb版本是39 。

我已将PATH改为平台工具~/Library/Android/sdk/platform-tools,错误已解决

 
   
I had the same issue and it was related to the Path for my environment variables as well. My path was a little different, so keep track of where the AndroidSDK is installed. – wlh Apr 3 at 23:40
 

This works for me...

  • go to GenyMotion settings -> ADB tab
  • instead of Use Genymotion Android tools, choose custom Android SDK Tools and then browse your installed SDK.
  • 这对我有用

    • 转到GenyMotion设置 - > ADB选项卡
    • 而不是使用Genymotion Android工具,选择自定义Android SDK工具,然后浏览已安装的SDK。
 
   
I do not have Genymotion on my system. – HTMLlama Mar 29 at 16:37
   
I experienced this problem only with genymotion emulator... sorry. – Alecs Mar 30 at 9:50
   
Thanks. I'm using Genymotion, and your solution saved my day – mohsen ny Mar 30 at 12:02
1 
Actually this error popped me out after installing a new version of @genymotion – Jose Luis Martín RomeraApr 28 at 15:08
   
thanks, it helped me out as well – Nick May 18 at 8:39

To add yet another potential solution, Helium by Clockworkmod has it's own version of ADB built in that kept being started. Exiting the Helium Desktop application resolves the issue.
 

为了添加另一个潜在的解决方案,Clockworkmod的氦气具有内置的自有版本的ADB,不断被启动。退出氦桌面应用程序可以解决问题。

 

After installing the Android O preview on a test device my ADB stopped working and started giving me this error.

adb server version (36) doesn't match this client (39); killing... adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:333] Could not open interface: e00002c5 adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:294] Could not find device interface error: could not install *smartsocket* listener: Address already in use ADB server didn't ACK * failed to start daemon * error: cannot connect to daemon

The only answers I have come across on this issue referred to Genymotion being out of sync with ADB but I don’t use Genymotion. Any help would be greatly appreciated. I have already wiped and reinstalled Android Studio as well as all of its tools and settings yet seem to still have this issue.

 
1 
Had the same issue this morning. I was at Android SDK Tools 26.0.0 and Android SDK Platform-Tools 25.0.4. I downgraded to 25.0.3 and 25.0.1 respectively. – mkki Mar 28 at 19:45
   

In my case this error occured when I set up my environment adb path as ~/.android-sdk/platform-tools (which happens when e.g. android-platform-tools is installed via homebrew), which version was 36, but Android Studio project has Android SDK next path ~/Library/Android/sdk which adb version was 39.

I have changed my PATH to platform-tools to ~/Library/Android/sdk/platform-tools and error was solved

 
   
I had the same issue and it was related to the Path for my environment variables as well. My path was a little different, so keep track of where the AndroidSDK is installed. – wlh Apr 3 at 23:40
 

This works for me...

  • go to GenyMotion settings -> ADB tab
  • instead of Use Genymotion Android tools, choose custom Android SDK Tools and then browse your installed SDK.
 
   
I do not have Genymotion on my system. – HTMLlama Mar 29 at 16:37
   
I experienced this problem only with genymotion emulator... sorry. – Alecs Mar 30 at 9:50
   
Thanks. I'm using Genymotion, and your solution saved my day – mohsen ny Mar 30 at 12:02
1 
Actually this error popped me out after installing a new version of @genymotion – Jose Luis Martín RomeraApr 28 at 15:08
   
thanks, it helped me out as well – Nick May 18 at 8:39

To add yet another potential solution, Helium by Clockworkmod has it's own version of ADB built in that kept being started. Exiting the Helium Desktop application resolves the issue.

https://stackoverflow.com/questions/43050370/adb-server-version-36-doesnt-match-this-client-39-not-u...
普通分类: