Android Studio 2.1.1:“未检测到USB设备或正在运行的仿真器” [英] Android Studio 2.1.1: "no usb devices or running emulators detected"

查看:1360
本文介绍了Android Studio 2.1.1:“未检测到USB设备或正在运行的仿真器”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然间,我的Android Studio停止检测我的所有设备,它们都没有工作。它从一次执行发生到另一次执行。我已经更改了几行代码(1分钟可能?),点击运行(即时运行),然后我错过了所有设备。



我正在使用Mac和作为设备:Nexus 5x,Galaxy s6和Oneplus One。会发生什么?我检查了以前的问题,并尝试了所有这些:


  • 运行配置:无论我选择usb设备还是显示窗口,不起作用。

  • 工具> Android>启用ADB集成:没有帮助

  • 命令行 adb devices 也未检测到任何内容

  • 我已撤销并再次授予USB授权。




  • 重新启动的手机
  • >重新启动的android studio
  • 重新启动的计算机


$ b 它可以工作,但我更喜欢使用物理设备,因为我必须扫描真实的条形码)



非常感谢。

解决方案

好的,我已修复。如果任何面孔相同的问题是Stetho( http://facebook.github.io/stetho/ ),你可以输入:chrome:// inspect /#devices不知道原因,因为它现在已经打开了2天,但是这是原因,一旦我关闭它,它就起作用了。



在这里找到这个不被接受的答案: macbook adb无法打开界面这肯定应该被接受。



编辑:我已经能够复制这个问题。当你打开设备标签并尝试运行配置了stetho的第二个应用程序时,会发生这种情况。


Suddenly my Android Studio stopped detecting all my devices, none of them is working. It happen from one execution to another. I've changed a few lines of code (1 min maybe?), hit run (instant run) and then I missed all my devices.

I'm using a Mac and as devices: Nexus 5x, Galaxy s6 and Oneplus One. What can be happening? I've checked previous questions here and tried all this:

  • Run configurations: no matter if I chose usb device or show the window, it does not work.
  • Tools > Android > Enable ADB integration: didn't help
  • Command line adb devices does not detect any either.
  • I've revoked and granted again USB authorizations. Still not working.
  • I've tried other apps I have, none work.
  • Restarted phones
  • Restarted android studio
  • Restarted computer

(Note: if I start an emulator it works, but I'd prefer to use physical device since I have to scan real barcodes)

Thanks a lot in advance.

解决方案

Well, I've fixed. The problem in case any faces the same was a Stetho (http://facebook.github.io/stetho/) tab in chrome, the one you open by typing: chrome://inspect/#devices not sure about the reason because it's been open for 2 days now, but it was the cause, once I closed it, it worked.

Found this unaccepted answer here: macbook adb cannot open interface That for sure should be accepted.

EDIT: I've been able to replicate the problem. It happens when you have the devices tab open and try to run a second app that has stetho configured.

这篇关于Android Studio 2.1.1:“未检测到USB设备或正在运行的仿真器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆