简体   繁体   中英

Genymotion Android emulator - adb access?

I downloaded Genymotion Android emulators for Oracle VirtualBox ( http://www.genymotion.com/ ) on my Windows 7 PC, created a virtual Jelly Bean with Google Apps device. How do I enable ADB access to it? In system settings/Developer options I already enabled "USB debugging", but typing "adb devices" shows empty list of connected devices. Tried adding a USB port for this VM and rebooting VM, but it does not help.

Greg

We need to connect with IP address to the emulator, so look for the IP address of the running emulator (it's shown in the emulator title bar) and use something like:

adb connect 192.168.56.102:5555

Afterward adb works normally. You may also find out the IP address of a running emulator by starting "Genymotion Shell" and typing 'devices list'

I also find out that occasionally I have to do the above when the emulator is running for a longer time and somehow ADB disconnects from it.

Greg

If you launch the VM with the the launchpad (genymotion binary where you download the VMs) and you set the Android SDK path into the application parameters the connection is automatic and you don't need to run adb connect

You can find the information in the Genymotion Docs .

只需执行此操作,在运行 genymotion 设备的情况下,您可以打开 Virtual Box ,并看到您的设备有一个 VM,然后转到 VM 的网络设置、NAT 并执行本地 5555 到远程 5555 屏幕附加Virtual Box Nat 的端口转发网络端口转发

My working solution is:

cd /opt/genymobile/genymotion/tools
./adb shell

You have to use its own adb tool.

Connect didn't work for me, The problem was that Genymotion uses its own dk-tools and you need to change it to custom SDK tools.

More info: https://stackoverflow.com/a/26630862/4154438

只需转到 Genymotion 安装目录,然后在文件夹工具中,您将看到 adb.exe 在此处打开命令提示符并运行 adb 命令

I know it's way too late to answer this question, but I'll just post the solution that worked for me, in case someone runs into trouble again in the future.

I tried using genymotion's own adb tools and the original Android SDK ones, and even purging and reinstalling adb from my system, but nothing worked. I kept getting the error:

adb server is out of date. killing... cannot bind 'tcp:5037' ADB server didn't ACK *failed to start daemon* error:
So I tried adb connect [ip] as suggested here, but I didn't work either, the same error came up.

What finally worked for me was downloading ADT , and running adb directly from the downloaded folder, instead of the system-wide command. So adb devices will give me the error above, but / yourdownloadpath /adb devices works just fine for me.

Hope it helped.

您可以获得 IP Genymotion Virtual Device Manager ,然后使用这样的命令

adb connect your ip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM