Android Studio 2.1.1:“未检测到USB设备或运行模拟器”(Android Studio 2.1.1: “no usb devices or running emulators detected”)
突然间,我的Android Studio停止检测我的所有设备,它们都没有工作。 它从一次执行发生到另一次执行。 我已经更改了几行代码(可能是1分钟?),点击运行(即时运行),然后我错过了所有设备。
我使用Mac和设备:Nexus 5x,Galaxy s6和Oneplus One。 会发生什么? 我在这里检查了以前的问题并尝试了所有这些:
运行配置:无论我选择usb设备还是显示窗口,它都不起作用。
Tools > Android > Enable ADB integration :没有帮助
命令行adb devices也没有检测到任何一个。
我已经撤销并再次授予USB授权。 还是行不通。
我试过其他应用程序,但都没有工作。
重新启动的手机
重新启动android studio
重新启动计算机
(注意:如果我启动了一个仿真器,它可以工作,但我更喜欢使用物理设备,因为我必须扫描真实的条形码)
提前致谢。
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.
原文:https://stackoverflow.com/questions/38326366
更新时间:2020-01-08 00:26
最满意答案
关于棒棒糖5.1
转到关于电话
在内部版本号上点击7次。 现在开发人员选项已启用
返回并点击开发者选项
在调试下启用USB调试。
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.
2017-05-23
相关问答
如果我点击RUN按钮只是向我显示该消息:没有检测到USB设备或正在运行的仿真器。 您没有运行任何仿真器,也没有连接任何物理设备进行USB调试(请参阅在硬件设备上运行应用程序 )。 当我点击“确定”时显示该注释:minSdk(API 16)> deviceSdk(API 14)。 模拟器运行Android API 14 ,项目的minSDK为16,因此您的项目将无法在设备/模拟器上运行 = 16
...
嘿sujan_014 Android studion无法识别您的设备意味着您的设备驱动程序安装不正确。 因此,对于平板电脑调试,首先要安装平板电脑设备驱动程序。 如果你没有驱动程序,你可以从这个网站http://adbdriver.com/downloads/下载首先你的设备连接到你的电脑,然后启动USB调试。 现在启动adbdriverinstaller设置,这将检测您的设备。 检测到设备后,应按安装按钮安装设备驱动程序。 完成该过程后,您可以使用android studio开始调试您的设备。
...
要运行Android应用程序,Android Studio需要一个真正的物理android设备或虚拟机来运行代码。 这些被称为部署目标。 这些消息意味着您没有插入实际的Android设备(或者未设置驱动程序以便识别设备或出于其他原因),并且您的计算机的CPU没有按顺序打开虚拟化因为你有一个虚拟的Android设备。 如果您的CPU具有虚拟化功能,您可以在BIOS设置中更改此设置,然后您必须使用SDK附带的虚拟设备管理器创建虚拟设备。 注意:我不确定是否为虚拟设备启用了虚拟化需求,或者是否只是增强了
...
关于棒棒糖5.1 转到关于电话 在内部版本号上点击7次。 现在开发人员选项已启用 返回并点击开发者选项 在调试下启用USB调试。 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 ab
...
转到工具栏中的运行。 选择编辑配置.. 在左侧面板中,您会看到您的应用程序(应用程序)。 在部署目标选项下的右侧,选择目标为打开选择部署目标对话框选项。 而另一种选择就是这样。 I ended up downloading the official Samsung ADB from here: http://developer.samsung.com/technical-doc/view.do?v=T000000117 And it worked great after that. Thanks
...
试试这两个解决方案: 1)进入设置,然后选择安全并启用“未知来源”,以允许安装来自未知来源的应用程序。 如果它仍然无法尝试第二种解决方案。 2)这个问题可能是由于你的手机型号不支持adb驱动。 为此,下载PdaNet +适用于所有设备的通用adb驱动程序下载程序。 它会要求删除当前的驱动程序并进行操作。 它将修复所有与adb驱动相关的问题。 链接: http : //pdanet.co/a/ So after rigorous search, I've found the reason for i
...
iOS Simulator随Xcode一起发布。 您可以在developer.apple.com上下载(可通过免费AppleID访问)或从Mac App Store下载。 它仅在macOS上可用,Xcode 8+需要macOS El Capitan或更新版本。 iOS Simulator is distributed with Xcode. You can download it on developer.apple.com (accessible with a free AppleID) or
...
首先从命令行/终端运行adb设备 (位于android sdk> platform-tools>),并检查您的手机是否已列出。 如果不重新启动adb: adb kill-server adb start-server 如果无法使用,请尝试更改手机上的USB配置 :选择MTP或PTP。 手机连接后,您可以从顶部面板进行更改。 如果这将显示带MAC地址的确认对话框,请确认它。 在Android Studio可以看到您的手机之前,您的手机必须能够被亚行看到。 First of all run adb d
...
下午好! 每个程序都有自己的模拟器。 Visual Studio可识别在visual studio模拟器上创建的机器(Android设备)。 要在AVD(Android虚拟设备管理器)中显示那些可用的VS下拉列表,请先尝试在AVD中启动它们,然后在其中运行您的应用程序 Good afternoon! Each program has its own emulators. Visual Studio recognizes machines(android devices) created on vi
...
重新启动电脑,重新启动电话,如果没有运气,请尝试从此链接http://gsmusbdriver.com/xiaomi-redmi-3s安装USB驱动程序,然后重试 Restart PC, Restart phone, if no luck, Try installing usb driver from this link http://gsmusbdriver.com/xiaomi-redmi-3s and try again