简体   繁体   English

如何在安卓手机上运行安卓项目?

[英]How to run android project on android phones?

I am working on an app written in kotlin right now it is very basic app, I want to run that app on my phone, I have enable USB debugging but still on android studio project I am unable to see my phone name?我正在开发一个用 kotlin 编写的应用程序,它是非常基本的应用程序,我想在我的手机上运行该应用程序,我启用了 USB 调试但仍在 android studio 项目中我看不到我的手机名称? Any help.任何帮助。 Thanks谢谢

Android Studio Pic安卓工作室图片

Not seeing your device in the "Choose Device" window?在“选择设备”窗口中没有看到您的设备? Try the following:请尝试以下操作:

  • Unplug your device from the USB port on the computer从计算机上的 USB 端口拔下您的设备
  • Restart the device by powering off and back on *Verify that Settings => Developer options => USB Debugging √ is enabled通过关闭电源然后重新打开来重新启动设备 *验证设置 => 开发人员选项 => USB 调试 √ 已启用
  • Quit and re-launch Android Studio退出并重新启动 Android Studio
  • Force restart ADB from the "Android Device Monitor"从“Android 设备监视器”强制重启 ADB
  • Plug your device back into the USB port on the computer将您的设备重新插入计算机上的 USB 端口

*** Unlock the device and press "OK" on any dialog displayed *** *** 解锁设备并在显示的任何对话框上按“确定”***

You will receive an allow dialogue before accessing your phone.在访问您的手机之前,您将收到一个允许对话框。

Just adding to the answer by another user.只是添加到另一个用户的答案中。 You should also check you have the USB driver installed.您还应该检查是否安装了 USB 驱动程序。 Install the Google USB driver in Android Studio First.首先在 Android Studio 中安装 Google USB 驱动程序。 Then try installing the application.然后尝试安装该应用程序。 Follow this tuturial Get the Google USB Driver to learn how to do just that按照本教程获取 Google USB 驱动程序以了解如何做到这一点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM