Android: Within Android Device Chooser the same device shows up several times

孤人 提交于 2019-12-09 13:22:58

问题


I am using Eclipse to program for the Android OS. I use a real device to test my application on.

To test my application I click on run, then the target project i wanna run and then the Android Device Chooser pops up, where I can choose the device or emulator that I want to run the application. (like probably every programmer here).

But sometimes when my app crashes because of some exception, the Android Device Handler gets some weired behavior. Now everytime I connect my device to the computer via USB a new device shows up in the Android Device Chooser, but all them (which are the same) are "unknown", so I cant use my device for testing anymore.


(source: yfrog.com)

The only way to solve this is by restarting my computer. Isnt there any other way to solve the problem? Am I missing something?


回答1:


In your command line. (assuming ADB is on your path)

Try:

adb kill-server

adb start-server

adb devices



回答2:


Unplug the device from the system. Restart the eclipse IDE. Goto the device development setting, uncheck and then check the USB debugging. Issue will be resolved.



来源:https://stackoverflow.com/questions/3352360/android-within-android-device-chooser-the-same-device-shows-up-several-times

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