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.
Author by
Rogier
Updated on November 18, 2020Comments
-
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:
- In the application tag of the AndroidManifest.xml I have added:
android:debuggable="true"
. - 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. - In the application tag of the AndroidManifest.xml I have added:
-
Lee about 10 yearsThank 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 almost 10 yearsAnd for those that don't know how to enable USB debugging see wugfresh.com/faq/6