adb shell 提示:error: device not found 连不上的一个解决方案

时间:2023-01-11 21:31:48



1、今天遇到一个特别郁闷的问题,手上有4部手机,其中3部手机连接adb都没有问题,唯独有一部手机adb shell的时候老是提示:error: device not found。现象如下:


adb shell 提示:error: device not found 连不上的一个解决方案


2、试了很多方法,用adb kill-server等方法还是连不上,真是百思不得其解。后面发现原来是adb没有获得手机USB的vender ID,从而无法识别出手机。


3、解决方案:

     I、 在设备管理器中,找到Android Composite ADB Interface 然后双击点开。

               adb shell 提示:error: device not found 连不上的一个解决方案


     II、然后在详细信息中,点开硬件ID,查看到我的ID是2970

              adb shell 提示:error: device not found 连不上的一个解决方案



     III、在C:\Documents and Settings\Administrator\.android目录下找到或新建一个adb_usb.ini文件,然后把VID的数值写入到adb_usb.ini 里面,就是0xVID(0x2970)。


      adb shell 提示:error: device not found 连不上的一个解决方案             


     IV、搞定,不需要重启,adb就可以连上了。

     adb shell 提示:error: device not found 连不上的一个解决方案