从 Android Studio 在设备上安装 Android 应用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21015291/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing Android app on device from Android Studio
提问by Ojonugwa Jude Ochalifu
I am trying to install my app on an Android phone (HTC One) but am not sure how to go about this.I ran the app but the device does not show in the Choose Device
window that opens.What are the steps in doing this?
我正在尝试在 Android 手机 (HTC One) 上安装我的应用程序,但不知道该怎么做。我运行了应用程序,但设备没有显示在Choose Device
打开的窗口中。执行此操作的步骤是什么?
回答by Marek Dovina
Did you activate "Developer options" on your device? You must allow USB debugging and also allow "Unknown sources" to install application outside of Play Store. Also you need to have correctly installed driver on your computer. Follow instructions from https://developer.android.com/tools/device.html.
您是否在您的设备上激活了“开发者选项”?您必须允许 USB 调试并允许“未知来源”在 Play 商店之外安装应用程序。此外,您还需要在计算机上正确安装驱动程序。按照https://developer.android.com/tools/device.html 中的说明进行操作。