简体   繁体   English

adb 错误:未找到设备

[英]adb error : device not found

Android ADB showing device not found error when trying to install Apk.尝试安装 Apk 时,Android ADB 显示设备未找到错误。 After installing few apk's it becomes slow and disconnects all of a sudden giving adb device not found error.安装几个 apk 后,它变得很慢并且突然断开连接,出现 adb device not found 错误。 Please help me with a solution.请帮我解决。

File-> Settings -> Build, Execution, Deployment -> Instant Run文件-> 设置-> 构建、执行、部署-> 即时运行

disable "Enable Instant Run to hot swap code/resource changes on deploy(default enable)禁用“启用即时运行以在部署时热交换代码/资源更改(默认启用)

The information shared by you seems a bit generic, still you can try any of the following solutions.您分享的信息似乎有点笼统,您仍然可以尝试以下任何一种解决方案。

  1. Open command prompt as administrator and enter below commands:以管理员身份打开命令提示符并输入以下命令:

    • "adb kill-server" “亚行杀服务器”
    • "adb start-server" “亚行启动服务器”
  2. Install drivers for you phone if you're not testing on emulator.如果您不在模拟器上进行测试,请为您的手机安装驱动程序。

  3. Open android sdk manager and check/install "Google USB Driver" from extras folder.打开 android sdk 管理器并从 extras 文件夹中检查/安装“Google USB 驱动程序”。

I was using Windows 7 and my adb driver was not working tried everything even google driver was showing error when i updated driver that it is not compatible with 32 bit.我使用的是 Windows 7,我的 adb 驱动程序无法正常工作,尝试了所有操作,甚至当我更新驱动程序与 32 位不兼容时,谷歌驱动程序也显示错误。 I tried changing cables and commands but it was showing exclamation mark on ADB interfaces in other devices inside device manager.我尝试更改电缆和命令,但它在设备管理器内的其他设备的 ADB 接口上显示感叹号。 Adb devices was also not showing any devices. Adb devices 也没有显示任何设备。 I installed universal adb driver and now it is working fine.我安装了通用 adb 驱动程序,现在工作正常。 Hope it helps.希望能帮助到你。

Probably won't work and you already have tried it, but if no one of the previous answers help, sometimes it's usb cable's fault.可能行不通,您已经尝试过了,但是如果之前的任何一个答案都没有帮助,有时是 USB 电缆的问题。 Just try an other one to be sure.只需尝试另一个以确保。

我去了文件 - >无效现金/重新启动这为我修复了

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

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