I just started working on the PhoneGap application, If try to deploy the application to my phone, I connected by phone using data cable with Ubuntu machine. I was getting this “ERROR: Failed to deploy to device, no devices found.” when I run the application on device. To solve this below explanation will help us.
First check your device is properly connected!
$ adb devices
If this command not showing proper device id, then you will see something like below
$ adb devices List of devices attached ???????????? no permissions
Solve this issue by restarting adb server, for this we need root permission, so follow below procedure
$ sudo -i $ adb kill-server $ adb start-server $ adb devices $ exit
Now your device should be connected, now we can launch the PhoneGap app using cordova command
$ cordova run android --device
Hope it helps