简体   繁体   English

android studio没有看到USB连接的设备

[英]android studio doesn't see USB connected device

Just to be clear, the device isn't locked or anything and it works perfectly for my friend who has the same android studio version. 请注意,该设备未锁定或有任何锁定,非常适合具有相同android studio版本的我的朋友。 The problem isn't with detecting the usb device (by the computer), I can access the device's content just perfectly so it connects correctly to my computer but not to android studio. 问题不在于(通过计算机)检测到USB设备,我可以完美地访问设备的内容,因此它可以正确连接到我的计算机,但不能连接到android studio。 When I try to run an application, the usb device doesn't show amongst the options. 当我尝试运行应用程序时,这些选项中没有显示USB设备。 Can someone please help me with this issue, knowing that my android studio is updated. 有人知道我的Android Studio已更新,可以帮助我解决这个问题。

UPDATE: the devices I used are: Samsung J2 and J3 更新:我使用的设备是:三星J2和J3

Have you installed Universal USB Driver, if no then you will not see any device to connect. 您是否已安装通用USB驱动程序,否则,将看不到任何要连接的设备。 you can also install individual company device driver. 您还可以安装单个公司的设备驱动程序。

just try Universal USB Driver to connect all devices 只需尝试通用USB驱动程序即可连接所有设备

Download from here Universal USB Driver 从此处下载通用USB驱动程序

Open the Device Manager window from the control panel in your computer. 从计算机中的control panel打开“ Device Manager窗口。 In the Others/Unknown Devices tab you would see an unknown android device. 在其他/未知设备选项卡中,您将看到未知的android设备。 Right click on it and update the driver and re-run android studio. 右键单击它并更新驱动程序,然后重新运行android studio。

Make sure usb debugging is on in your device. 确保设备上已开启USB调试功能。 In Android Studio Tools->Android->Enable ADB Integration 在Android Studio工具-> Android->启用ADB集成中

Enable ADB Integration Then run app 启用ADB集成,然后运行应用

Hope it will solve the problem 希望它能解决问题

Enable your ADB in your Android 在Android中启用您的ADB

-> First go to Settings->Developer Options ->首先转到设置->开发人员选项

-> Then On or Enable your ADB Mode ->然后打开或启用您的ADB模式

Just a Restart of Android Studio worked for me. 只是Restart Android Studio对我有用。

In my case it happened because of non-interaction in Android_Studio for long. 就我而言,这是由于Android_Studio长时间不交互而发生的。

Else, Check with Run -> Edit Configurations -> Target . 否则,请通过Run -> Edit Configurations -> Target

I have the same problem and I use Samsung too. 我有同样的问题,我也使用三星。

I fixed it by installing the device driver from Samsung which you can download from Samsung's website 我通过从三星安装设备驱动程序来修复它,您可以从三星的网站下载该驱动程序

Note 注意

  1. You need to enable ADB mode(Like the second comment) 您需要启用ADB模式(就像第二条评论一样)

  2. You need to set Target in Android Studio to > Open Select Deployment Target Dialog 您需要将Android Studio中的“目标”设置为>“打开选择部署目标”对话框

  3. to set Target : Run > Edit Configurations > Targets > Open Select Deployment Target Dialog 设置目标:运行>编辑配置>目标>打开选择部署目标对话框

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

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