Connect android phone to ubuntu

on with Leave a reply

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 4+ years experience. PHP, jQuery, WordPress, Magento and Symfony2 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.

Leave a Reply

Your email address will not be published. Required fields are marked *