简体   繁体   English

Android Studio或ADB.exe无法检测到设备

[英]Android Studio or ADB.exe won't detect device

I have recently bought a HTC Nexus 9 tablet for the purpose of USB debugging in Android Studio. 我最近购买了HTC Nexus 9平板电脑,用于在Android Studio中进行USB调试。 This process works on other computers at university but I cannot get it to work properly from my home system,which is what I require. 这个过程可以在大学的其他计算机上使用,但是我无法从我的家庭系统上正常运行。 I have tried every single suggestion I have came across online but none have actually worked. 我已经尝试过我在网上遇到的每条建议,但实际上都没有奏效。

Steps Tried: 尝试的步骤:

  • Downloading the latest google USB Driver 下载最新的Google USB驱动程序
  • Installing it through Android Studio and Manually in device manager 通过Android Studio安装并在设备管理器中手动安装
  • Tried ADB Interface Driver and ADB Composite Interface Driver 尝试过的ADB接口驱动程序和ADB复合接口驱动程序
  • Configuring driver inf file by adding hardware ID's 通过添加硬件ID配置驱动程序inf文件
  • Ensuring usb debugging is enabled on the device 确保在设备上启用USB调试
  • Using different USB ports,3 different cables 使用不同的USB端口,3条不同的电缆
  • Tried connecting in PTP mode,MTP mode,charging only mode 尝试以PTP模式,MTP模式,仅充电模式连接
  • Rebooted device and computer 重新启动设备和计算机
  • Re installed android studio 重新安装android studio

No matter what I do,the device wont be shown in android studio or ADB.exe(under list all devices in terminal,also tried start and kill server). 无论我做什么,该设备都不会显示在android studio或ADB.exe中(在终端中列出所有设备下,也尝试启动并杀死服务器)。 I am officially out of ideas,if anyone could figure this out I would be forever grateful! 我正式地没有主意,如果有人能弄清楚这一点,我将永远感激不已!

I have attached some images of some of the things I have tried without success. 我附上了一些我没有成功尝试过的东西的图片。 Once driver has been installed it is listed as "Android Composite ADB Interface" or "Android ADB Interface". 安装驱动程序后,它会列为“ Android Composite ADB接口”或“ Android ADB接口”。 Operating system is Windows 7 64-bit 操作系统是Windows 7 64位

Device on first plug in 设备首次插入

Picking a driver 选司机

Download HTC PC suite from following link ,install and give a try 从以下链接下载HTC PC套件,安装并尝试

http://pc2.software112.com/getfreesw/231109-1805719/htc-pc-suite-07.html http://pc2.software112.com/getfreesw/231109-1805719/htc-pc-suite-07.html

I personally have had many issues with setting things up for Android. 我个人在针对Android进行设置时遇到了很多问题。 Things you should ensure you do include; 您应该确保自己做的事情包括:

Ensure you obtain the appropriate packages in the SDK manager - for example, I wasn't able to make logcat work when debugging with my phone until I downloaded the files for my specific version of Android (so the API files for a Nexus 9). 确保在SDK管理器中获取了适当的软件包-例如,在我使用手机进行调试时,我无法使logcat正常工作,直到我下载了特定版本的Android的文件(因此下载了Nexus 9的API文件)。

I believe you may also have to download drivers for your actual phone to allow connection - you should be able to download this from the HTC website. 我相信您可能还必须下载用于实际手机的驱动程序以允许连接-您应该可以从HTC网站下载此驱动程序。 This might be what you need, although I haven't checked it out, and I cant find where I downloaded my drivers from; 尽管我还没有检查出它,但是我找不到从哪里下载驱动程序,这可能就是您所需要的。

http://forum.xda-developers.com/showthread.php?t=2217396 http://forum.xda-developers.com/showthread.php?t=2217396

In general, you want to download lots of things from the SDK manager as you'll need them anyway, so don't hold back on just downloading them. 通常,您想从SDK管理器中下载很多内容,因为它们仍然需要它们,因此不要只下载它们而已。

For those (like me) who is still concerned with this issue. 对于那些仍在关注此问题的人(如我)。 You need to go to win+pause break ->Device Manager->Find "AdbInterface" with exclamation sign->Update driver->Search manually->Specify USB driver downloaded from SDK and enjoy: C:\\Users\\username\\AppData\\Local\\Android\\Sdk\\extras\\google\\usb_driver 您需要转到win + pause break->设备管理器->使用感叹号查找“ AdbInterface”->更新驱动程序->手动搜索->指定从SDK下载的USB驱动程序,然后享受:C:\\ Users \\ username \\ AppData \\本地\\ Android \\ SDK \\ extras \\ google \\ usb_driver

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

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