Run Android apps on hardware device from Android Studio by USB

拥有回忆 提交于 2019-12-09 08:14:01

问题


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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/18041904/run-android-apps-on-hardware-device-from-android-studio-by-usb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!