Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?


当前回答

在更新到Android Studio 3.1后,它无法看到我的设备,但adb可以看到它们。

要解决这个问题,你需要开始调试模拟器一次,然后在运行->编辑配置中切换回USB设备…- >目标。这一次它应该会起作用。

Android Studio 3.1与以前的版本相比有很多变化,所以你必须重置调试目标才能让你的设备正常工作。

其他回答

我使用的是Nougat API 24的Android版本,我通过更换USB线解决了一个设备问题。

由于驱动程序无法加载,我无法在windows 7上连接到我的设备。我遵循以下步骤:

从Intel网站下载Android USB驱动程序 安装驱动程序并重新启动系统 连接你的设备,它工作了

我的Nexus 5手机在设置菜单中没有开发者选项。我必须做到以下几点:

在Android 4.2及更新版本上,开发者选项默认是隐藏的。要使它可用,请进入“设置”>关于电话,并点击“构建号码”七次。返回到前一个屏幕以查找Developer选项。

I recently had trouble with this, and regardless of what I did(restart adb, edit adb_usb.ini, restart computer+device+swap usb port, reinstall studio etc. etc.) I just couldnt get it to work, and could not even detect my device using 'adb devices'. Finally after about 2 hours of googling and testing, someone suggested switching to PTP instead of MTP on my device. When I did this I got a popup on my device asking me to allow my mac access and suddenly everything worked(had to restart studio for it to show up there as well though).

我现在可能会碰到这个线程,但它是谷歌搜索的第一个结果,我有很多麻烦找到这个问题的答案,所以我认为这应该作为一个解决方案添加。

如果你的Windows甚至不能安装驱动程序,你应该进入设备管理器并获得设备ID(右键单击你的设备->属性->详细信息->硬件ID(在属性中)。 从Android Studio安装谷歌USB驱动程序。 进入android_winusb。inf文件(ANDROID_SDK_DIR/extras/谷歌/usb_driver/),并根据文件格式添加您的设备ID。 再次运行“adb devices”,一切正常。