问题描述
我正在使用genymotion来创建虚拟设备。
昨天我可以得到cordova跑android,让我的应用程序运行在genymotion虚拟设备上。
我想我重复了我昨天采取的步骤,但我无法让它工作。
我开始adb服务器(genymotion不运行)与
adb start-server
$ b b
adb服务器启动正常:
*守护程序未运行。现在在5037端口上启动*
*守护程序已成功启动*
我可以看到它在那里
lsof -i tcp:5037
adb 19131 bw 7u IPv4 0x3c0bc54e449e35f5 0t0 TCP localhost:5037(LISTEN)
没有连接任何设备
adb devices
到目前为止很好
现在当我启动genymotion,并启动一个虚拟设备,我的adb似乎已被杀死,无法启动,因为虚拟设备显然杀了它,并开始自己的adb实例
unknown-6c-40-08-9b-25-2c:todo bw $ adb devices
adb服务器已过期。 killing ...
无法绑定'tcp:5037'
ADB服务器没有确认
*启动daemon失败*
错误:
现在我没有办法将设备添加到adb中,这样我就可以通过
cordova执行android
,因为它找不到正在运行的设备。
我试图以root身份运行adb start-server,使得genymotion不能杀死它,但是genymotion virtual设备无法启动。
什么给了?感谢任何想法..谢谢!
解决方案好吧,这不是完全令人满意, p>
当我更改genymotion中的设置在设置 - > adb选项卡下引用我的android sdk而不是内置的genymotion安卓工具,一切工作正常。这是伟大的,但我不明白它怎么可以在昨天工作,我改变这种设置。好吧。希望这将有助于某人。
I am using cordova to build apps for android, on Mac OS X 10.9.4.
I am using genymotion to create virtual devices.
Yesterday I was able to get 'cordova run android' to get my apps to run on a genymotion virtual device.
Today, I thought I repeated the steps I took yesterday, but I can't get it to work.
I start the adb server (with genymotion not running) with
adb start-server
adb server starts up fine:
* daemon not running. starting it now on port 5037 * * daemon started successfully *
I can see it's there
lsof -i tcp:5037 adb 19131 bw 7u IPv4 0x3c0bc54e449e35f5 0t0 TCP localhost:5037 (LISTEN)
There's no devices attached
adb devices
So far so good
Now when I start up genymotion, and start a virtual device, my adb seems to have been killed and cannot start because the virtual device has apparently killed it and started its own adb instance
unknown-6c-40-08-9b-25-2c:todo bw$ adb devices adb server is out of date. killing... cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * error:
This now gives me no way to add the device to adb so that I can access it by doing
cordova run android
This command now fails, because it can't find a running device.
I tried running adb start-server as root, so that genymotion couldn't kill it, but then the genymotion virtual device wouldn't start up.
What gives? Grateful for any ideas.. Thanks!
解决方案Well, it's not entirely satisfactory, but I have got it to work.
When I change the settings in genymotion under the settings->adb tab to reference my android sdk rather than the built-in genymotion android tools, everything works fine. That's great, but I don't understand how it can have been working yesterday before I changed that setting. Oh well. Hopefully this will help someone.
这篇关于如何在mac上使用adb与genymotion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!