问题
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