通过 USB 从 Android Studio 在硬件设备上运行 Android 应用程序 [英] Run Android apps on hardware device from Android Studio by USB

查看:36
本文介绍了通过 USB 从 Android Studio 在硬件设备上运行 Android 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Android Studio 中开发应用程序,我可以在虚拟设备中成功运行它们.但是,在我自己的设备(三星 S3 GT-I9300)上运行应用程序不起作用.

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.

基于 Google 的文档(http://developer.android.com/tools/device.html) 我试过了:

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

  1. 在 AndroidManifest.xml 的应用程序标签中,我添加了:android:debuggable="true".
  2. 从三星网站安装了最新的 OEM 驱动程序

在 Android Studio 中,我在编辑配置中将目标设备更改为 USB 设备.但我不断收到这条消息:

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

等待设备.

未找到 USB 设备

我也安装了三星的 Kies 软件,使用这个软件我可以通过 USB 连接我的手机.我也在 \sdk\platform-tools 中尝试了 adb devices,但没有列出任何设备.

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.

推荐答案

我已经解决了问题!我没有在设置里开启USB调试.

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

这篇关于通过 USB 从 Android Studio 在硬件设备上运行 Android 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆