Rogier
Rogier

Reputation: 915

Run Android apps on hardware device from Android Studio by USB

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.

Upvotes: 16

Views: 56831

Answers (2)

lingceng
lingceng

Reputation: 2425

For Mac user, just restart your mac after installing android studio. Check Choose a running device at Device Chooser interface, you can see your device in the list.

http://developer.android.com/training/basics/firstapp/running-app.html

Upvotes: -1

Rogier
Rogier

Reputation: 915

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

Upvotes: 17

Related Questions