Android: Emulator control is disabled in the DDMS perspective

别来无恙 提交于 2019-12-17 19:16:38

问题


I'm now facing a problem with Eclipse on Ubuntu. My device is connected, list by "adb devices" command and I can see the list of processes running in the Devices view. But all controls in the Emulator Control are disabled.

Does anyone know what may be the reason for this?

Thanks


回答1:


First, make sure that the device is selected in the Devices view. You cannot use Emulator Control unless the device or emulator is selected.

If that does not help, close Eclipse, and try running DDMS outside of Eclipse -- there's a ddms shell script in the tools/ directory of wherever you installed the Android SDK.

If that does not help, run adb kill-server, followed by adb start-server, where adb should be in your platform-tools/ directory of your SDK installation. Then, try DDMS again.

If that does not help, reboot, then try DDMS again.




回答2:


i found this with try and error .. it worked .. As the new emulator got a side bar with icons .. the last icon down this list (the hamburger icon) click it .. then u will have the location latitude and longitude available to send to device




回答3:


After unplugging USB connection from real device Emulator Control start work properly with Virtual devices




回答4:


You can't send locations to actual devices, only emulators. You can mock your devices location however, in your code.

http://developer.android.com/training/location/location-testing.html



来源:https://stackoverflow.com/questions/5059658/android-emulator-control-is-disabled-in-the-ddms-perspective

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