Can't able to run PhoneGap app in Android device

荒凉一梦 提交于 2019-12-11 09:26:23

问题


I have created a test PhoneGap Android App through CLI - I can able to run it to emulator but I can't able to run it to a device which is connected to through USB.

USB debugging is also enabled.

> adb devices

doesn't list the device but which lists the emulator.

Am I missing anything?


回答1:


USB driver for the device was missing. For some of the Google devices drivers are available in sdk\extras\google\usb_driver. For other brands like HTC, Samsung and others we need to get it from them and install the same. I have downloaded driver for HTC One X from their website and installed it.

Sources:

  • Using hardware devices
  • Install USB Drivers

After installation use the below command to run the PhoneGap app

cordova run android \\if project created with cordova command

phonegap run android \\if project created with phonegap command


来源:https://stackoverflow.com/questions/21728062/cant-able-to-run-phonegap-app-in-android-device

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