Android Studio - Lollipop, ADB, & Genymotion issues: Devices won't show up. “adb server is out of date. killing…” [duplicate]

拜拜、爱过 提交于 2019-11-26 18:15:40

Try running this:

killall -9 adb

That should remove all running traces of the daemon

Edit: Best solution below

This issue may be adb incompatibility with the newest version of the platform SDK. The best solution for this issue with Genymotion is to set the Android SDK within Genymotion to your location. This can be found within the Settings page.

In my case the problem was that I have installed adb tools and fastboot using this command

sudo apt-get install android-tools-adb android-tools-fastboot

From repository, so in this case this executables goes to the /usr/bin/ directory in order that you can use it system-wide ($PATH variable).

In addition, I am running android studio with genymotion configured like in the answer above.

So when I was trying to acces adb (adb shell in my case) it was trying to start another copy of adb process (server) and bind to default port, so the problem was here.

I have just uninstalled the android-tools-adb android-tools-fastboot and added the path to my Android SDK to the $PATH variable

Using genymotion on ubuntu.

My solution was to actually use the binary instead of the PATH'd adb.

~/genymotion/tools/abd reboot

Also I have the custom SDK in genymotion.

What worked for me finally and what I think is hastle free is that you simply run the adb commands directly from platform-tools folder. For example, use ./adb devices to view the devices. I also changed genymotion's SDK to android's default SDK but I'm not sure if it won't work without doing that.

I think ,if you want to use adb its better to use android studio emulator and test what you want, after you can use Genymotion

None of solutions helped for Ubuntu. Just drag .apk file onto Genymotion device's screen and app will be installed.

Ubuntu 15.04, Genymotion 2.5.2

The accepted answer did not work for me, although the idea did, just with a different command:

pkill adb

I'm running ubuntu MATE 1.8.2 and Genymotion 2.6.

x-ray

Add the Android SDK to the $PATH variable.

I just used ./adb reboot on Android/Sdk/platform-tools/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!