Shankar
Shankar

Reputation: 636

Can't able to run PhoneGap app in Android device

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?

Upvotes: 1

Views: 1375

Answers (1)

Shankar
Shankar

Reputation: 636

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:

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

Upvotes: 1

Related Questions