How to run Android projects, on Eclipse, on a smartphone?

Asked

Viewed 8,421 times

8

I have a Moto G and, no way, I am able to connect it (via USB) to Eclipse, to run the projects Android Application directly on the device.

  • Is it debugged? In the settings > development part?

2 answers

6


Left USB debugging option checked in Moto G?

Then just turn on the device.

  • That’s right. Debugging via USB disabled! What happens is that the Moto G comes with this option (settings > development) "hidden", and I wasn’t finding it. On the Motorola website, I found out that to release it you need to go to "Settings > About your phone", and tap "Version Number" 7 times in a row. =)

  • Glad you made it @rafaelnep

  • 1

    This is not only on Motorola phones, it’s Android Jellybean 4.2 and above. You can even change the issue title by specifying this if you want.

  • Good info, @Piovezan. It’s just my first smart with Android, so I don’t have much practice with the platform in general. In fact, My system version is 4.3. Vlw

6

Try the following:

  • Enable USB Debugging on your smartphone.
  • Install its driver on PC (some only work like this).
  • If you have to install driver, restart Eclipse.

To make sure the SDK is detecting the device run 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.