Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running phonegap on device - no device found

I am trying to run an app that I made in phonegap on my device, connected with USB.

-> phonegap run android [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] compiling Android... [phonegap] successfully compiled Android app [phonegap] trying to install app onto device [phonegap] no device was found  -> adb devices List of devices attached  SH25PW103163    device 

I just ran a native Android app in eclipse on this device, I have USB Debugging activated.

What can be wrong?

like image 732
Johannes Avatar asked Nov 04 '13 12:11

Johannes


1 Answers

If you have only one adb-capable device, use this command:

phonegap run android --device

If you have more than one you will need to specify the device ID this way:

phonegap run android --device=<device-id>

Example:

phonegap run android --device=SH25PW103163

phonegap run android --target=SH25PW103163

If you want to know the code of a device execute this in the console (shell, terminal):

adb devices

like image 173
Johannes Avatar answered Sep 30 '22 09:09

Johannes