Connect android phone to ubuntu

on

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

Posted in Android, Ubuntu and tagged , by .

About Gowri

I am professional web developer with 8+ years experience. PHP, jQuery, WordPress, Angular and Ionic are my key skills in web development. I am working with strong enthusiastic team with spirit. We provide all web related solution like HTML/CSS development, Web graphic design and Logo.