Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 676
Rogier Avatar asked Aug 04 '13 10:08

Rogier


People also ask

Can Android Studio run on Android device?

Run your app on the Android device with a cable You can choose whichever you like more. To run your app from Android Studio on your Android device: Connect your Android device to your computer with a USB cable. A dialog should appear on your device, which asks you to allow USB debugging.

How can I run Android apps instead of emulator?

In the Android Studio toolbar, select your app from the run configurations drop-down menu. From the target device drop-down menu, select the device that you want to run your app on. Select Run ▷. This will launch the app on your connected device.

Can I use external emulator in Android Studio?

The emulator is compatible with Android SDK and Android Studio.


1 Answers

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

like image 63
Rogier Avatar answered Oct 02 '22 14:10

Rogier