Run Android apps on hardware device from Android Studio by USB

56,303

I have solved the problem! I didn't enable USB debugging in the settings.

Share:
56,303
Rogier
Author by

Rogier

Updated on November 18, 2020

Comments

  • Rogier
    Rogier over 3 years

    I am developing apps in Android Studio and I can run them in the virtual device succesfully. However running the apps on my own device (Samsung S3 GT-I9300) doesn't work.

    Based on the documentation of Google (http://developer.android.com/tools/device.html) I have tried this:

    1. In the application tag of the AndroidManifest.xml I have added: android:debuggable="true".
    2. Installed the latest OEM driver from the Samsung Website

    In the Android Studio I changed in the Edit Configurations the target device into USB device. But I constantly get this message:

    Waiting for device.

    USB device not found

    I also have installed Kies software from Samsung and with this software I can connect my phone by USB. I have also tried adb devices in \sdk\platform-tools, but no devices are listed.

  • Lee
    Lee about 10 years
    Thank you for this. To clarify, the solution is to enable USB Debugging on the Android device. I had enabled Developer Options on my phone by tapping 7 times but then didn't go into the options to enable USB Debugging.
  • Nicholas John Martin
    Nicholas John Martin almost 10 years
    And for those that don't know how to enable USB debugging see wugfresh.com/faq/6