How to run Android projects in Eclipse on a smartphone?

8

I have a MotoG and by no means am I able to connect it (via USB) to Eclipse to run the Android Application projects directly on the device.

    
asked by anonymous 11.02.2014 / 18:25

2 answers

6

Did you leave the USB debugging option checked on Moto G?

Then just run the device.

    
11.02.2014 / 18:27
6

Try the following:

  • Enable Debug via USB on your smartphone.
  • Install the driver on the PC (some will work).
  • If you need to install driver, restart Eclipse.

To make sure the SDK is detecting the device, perform the following:

cd <dir_do_seu_sdk>
cd platform-tools
adb devices

If the device was detected, it will be shown in a list like this:

List of devices attached
c0808d70a7a9730 device
    
11.02.2014 / 18:36