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


当前回答

问题:设备没有出现在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.

其他回答

我有一部摩托罗拉Razr手机,但我很难识别我的设备。 我所做的是:

1 -从命令提示符(作为管理员)-> adb kill-servers

2 -下载摩托罗拉设备管理器这里-> https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481

3 -我一直等到安装完成。

4 -从命令提示符(管理员)-> adb设备

可能有两个原因导致adb devices命令不适合您。你手机的USB驱动程序没有正确安装,或者你没有启用USB调试模式。

我创建了一个工具,使安装USB驱动程序一个点击的事情。

只需将您的手机以USB调试模式连接到PC。 运行我的工具

它将检测并安装特定于您的手机的驱动程序,并安装最新的ADB和Fastboot二进制文件。

该工具可在我的GitHub回购

您必须从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.

我用的是装有安卓10系统的三星手机。它之前检测到,但在我的工厂数据重置Android 10手机后,在Windows 10上停止检测。虽然在Windows 11 PC上正常检测到。

当我深入挖掘一点,在android手机设置内的开发者选项中,有一个名为默认USB配置[设置->开发者选项->默认USB配置]的配置。当我选择那个选项时,出现了几个选项,默认情况下没有一个是被选中的。

我尝试选择一个接一个的选项,当我选择USB系留选项;然后android设备开始检测。

对于我的Nexus 6P来说,从谷歌下载驱动程序帮助解决了这个问题。下面是带有文档的URL。在这里你可以下载驱动程序本身。

附注:我看到一些人建议从互联网上随机下载一些驱动程序。虽然这可能会有所帮助,但在我看来,从非官方的地方下载未知的驱动程序太危险了。所以谷歌的一个对我来说很好:)