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看到设备内的文件夹?


当前回答

进入DeviceManager,右键单击android设备,选择“卸载驱动程序”。 拔下插头,重新插上…然后,当你的电脑安装所需的驱动程序时,你的设备上会弹出一个弹出窗口。点击弹出的“允许”。 当您在命令提示符中输入“adb devices”时,可以看到您的设备。

其他回答

如果你熟悉Linux,就用Linux代替Windows。在树莓派上,这样做

apt-get install android-tools-adb andoid-tools-fastboot

没有特殊的USB驱动程序需要,它只是工作。Android是基于Linux的,所以你更多的是在原生模式下工作。我在这里看到的许多问题都是Windows的问题。osx在这方面也可能比Windows有优势。Adb和fastboot都有man(手册)页面,可以从Linux中访问。

最初的问题:当手机处于fastboot模式时,我在adb中没有看到任何设备,adb和fastboot似乎是互斥的,你一次只能使用其中一个。USB调试必须打开。

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

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

您必须从SDK管理器下载驱动程序(额外→谷歌USB驱动程序)

然后你必须在Windows中安装USB驱动程序(对我来说在Windows 8.1中是有效的):

(从http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver:复制粘贴)

Connect your Android-powered device to your computer's USB port. Right-click on "Computer" from your desktop or Windows Explorer, and select "Manage". Select "Devices" in the left pane. Locate and expand "Other device" in the right pane. Right-click the device name (such as Nexus S) and select "Update Driver Software." This will launch the "Hardware Update Wizard". Select "Browse my computer for driver software" and click "Next." Click "Browse" and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.) Click "Next" to install the driver.

对于Windows,只要结束所有与Blue堆栈相关的进程或任何类似的模拟器(如果您正在使用)。

为我工作。

问题:设备没有出现在vscode和ABD接口-没有发现驱动程序

解决方案:

Enable USB debugging in mobile. Connect your mobile and laptop using USB cable go to https://developer.android.com/studio/run/win-usb click on the "Click here to download the Google USB Driver ZIP file (ZIP)" go to device manager -> other devices -> right click on ADB device and click update driver software. Select "Browse my computer for Driver Software" Select "Let me pick from list of Device drivers on my computer" double click "show all devices" Click on "Have Disk" option. Select the driver path android-sdk-windows\extras\google\usb_driver .Select android_winusb.inf file select Android ADB interface -> click next Click Yes to install, close the window upon success. Now you will see the device appearing in VSCODE.