2024-10-03 08:00:04

ADB未发现设备

我正在尝试在我全新的Nexus 10上安装一个Android应用程序。我有一个。apk文件。我下载了Android SDK,安装了“Android SDK Tools”,“Android SDK Platform-tools”和谷歌USB Driver。我已经在我的Nexus 10上检查了“未知来源”的设置。

当我从命令终端运行“adb devices”时,它不会列出任何设备。我试图遵循这个建议,因为它与我之前在Stack Overflow上找到的建议完全相同。在执行这些步骤之后,“adb devices”仍然返回一个空列表,更糟糕的是,当我将Nexus 10连接到我的PC时,Windows不会显示设备内的任何文件夹。

我已经取消了该链接中的步骤,以及迄今为止我所做的所有其他操作,还从设备管理器中卸载了我的Nexus 10并重新安装了它,但我仍然没有在设备中看到任何文件夹。

为了让我的设备显示在ADB设备中,我是否遗漏了什么?

我怎么做才能让Windows看到设备内的文件夹?


当前回答

在MTP模式下拥有ADB

如果你在设备管理器中没有找到任何ADB设备(没有带有感叹号的设备)(检查了手机上的所有开发人员设置),请执行以下操作:

在设备管理器中:

UpdateDriver->曼纽尔安装->在我的计算机上搜索->从已安装的驱动程序列表中选择->,然后选择一个有usb字在它(不是MTP)。

编辑:在那之后,你会有2或3个外设,一个用于USB,一个用于ADB,使用通常的方法安装ADB驱动程序(见第一个答案)

其他回答

Windows 8无法识别我的Nexus 10设备。通过设备上的设置对话框设置传输模式为摄像机(PTP)修正。

>存储>菜单> USB计算机连接到“相机(PTP)”

Edit: I recommend you DO NOT run ADB under VirtualBox if you are using a Windows Host. Somehow I got VirtualBox to lock the device drivers on the host, eventually making it so that the ADB wouldn't work on the client nor the host for any device I plugged in. To fix, I removed VirtualBox extensions on the host and ran http://www.nirsoft.net/utils/usb_devices_view.html to delete the incorrect drivers. I could not get the correct drivers to load while VirtualBox extensions were installed, and this problem was a complete bastard to diagnose and fix.

编辑2:以下也可能是过时的,现在谷歌已经发布了一个集成的ADB扩展Chrome。

真是一场安装噩梦……下面是让我的Nexus 10在VirtualBox下运行的XP虚拟机上被识别的步骤:

If you get asked to install Nexus 10 drivers, make sure to untick "don't ask again" (you WANT to be asked again!). Plug in the Nexus 10 USB connection Turn on debugging in the Nexus 10 settings Developer menu (tap "About Tablet" 7 times to get that menu). In your virtual machine settings (host), add the samsung Nexus 10 device to the USB Device Filters (important - selecting it from the devices menu didn't seem to work). In guest install java jre (if you don't have java installed). In Control Panel, change Java settings so that java doesn't run in the browser (to help prevent security issues). In guest get the adk zip file and put it somewhere permanent. I needed to delete the .android config directory from the user directory because I moved the directory. Run the SDK Manager.exe - if it doesn't work, try running sdk\tools\android.bat which seems to give better error reporting. From SDK Manager install the Google USB driver package. Unplug the Nexus 10 and plug it in again, and install the Google USB driver package. Restart the guest. running c:>[...]\sdk\platformtools> adb devices finally shows me the device...

如果设备处于MTP模式,则调试时可能不可见。有些设备只在PTP模式下工作(甚至在“仅充电”模式下)。

可以在“设置”中更改>开发人员选项>网络> USB默认配置> PTP。

此外,你会在你的android设备上收到一个通知,要求你确认USB配置设置的变化,并允许它。

注意:您可以通过以下链接打开开发人员选项: 启用开发人员选项

正常情况下,SDB会在**android-sdk-windows\extras\谷歌\usb_driver**路径下下载驱动程序

以下是对我有用的步骤:

打开USB调试开关。 执行到设备管理器,右键单击ADB设备,然后单击更新驱动程序软件。 选择“浏览我的计算机以获取驱动程序软件” 选择“让我从计算机上的设备驱动程序列表中选择” 点击“拥有磁盘”选项。 选择驱动路径**android-sdk-windows\extras\谷歌\usb_driver** (sdk路径) 7.从显示的车手列表中选择第一个车手。

希望它能起作用。

在通过Android SDK管理器下载了谷歌驱动程序(可通过Eclipse, Intellij或Android Studio)后,我必须在计算机管理>设备管理>其他设备> ADB中更新驱动程序-右键单击更新驱动程序并浏览更新的驱动程序最终完成了任务。

顺便说一句,对我来说也是个噩梦。我仍然感到困惑,建立一个开发环境应该是最困难的任务,每一个新的无法解释的失败都会导致另一个失败。Jeesh !祝你好运。