Application not running on Android device

好久不见. 提交于 2020-01-24 14:34:45

问题


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

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