问题
My application is running properly on emulator but not on device. Earlier I have run the same app on device many a times. I have turned USB- Debugging on my device, also set debuggable to true in manifest.
When I try to use command adb devices, it's showing me an empty list of devices.
Has anybody encountered same problem anytime?
Thanx in advance.
回答1:
Keep ur phone connected with the system and then restart ur system. I think it will work then.
回答2:
While connecting your device to desktop/laptop don't connect the device as a mass storage.
回答3:
This is just a list of things to try/check
-> Unknown Source to true
-> Debuggable requires USB Debugging
-> Non Mass Storage mode/USB connect to access the SD Card
-> unplug replug
-> reboot the phone (to be sure you can unplug the usb and remove the battery)
-> restart adb
Can you see an emulator ? can you launch your app on the emulator? can you launch a different project on the phone?
来源:https://stackoverflow.com/questions/4437041/application-not-running-on-android-device