Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?
当前回答
它为我工作如下步骤:-
如果您使用Windows,由于驱动程序问题,设备将无法显示。
转到设备管理器(使用开始搜索即可) 并查找任何显示错误的设备。许多机器人会显示为一个未知的USB设备,并带有感叹号。选择该设备并尝试更新它的驱动程序。更新部分请参考链接:universal adb
但在此之前,你必须更新你的sdk管理器,并确保谷歌USB驱动软件包安装。
完成后,驱动程序文件被下载到\extras\谷歌\usb_driver\目录中。提示:搜索“android_winusb”。在Windows启动和打开文件位置下的inf",以获得所提到的目录。
打开你的设备管理器,导航到你的android设备,右键点击它,选择更新驱动程序软件,然后选择浏览驱动程序软件。按照前面的文件位置路径安装谷歌USB驱动程序。
重新启动Android设备中的Android Studio和开发者选项,并重新连接USB。
干杯!
其他回答
我的设置
Android Studio 3.5.3 macOS 10.14.6 Android 9设备通过Belkin USB集线器连接到Mac。
当从谷歌的Android github repo运行Kotlin示例项目时,没有配置,也没有设备显示在UI中。
解决方案
File > Sync Project with Gradle Files But my internet connection needs a fix, so I had to go to Preferences > System Settings > HTTP Proxy to specify a working proxy. Make sure buildscript{ ext.kotlin_version } runs a more recent version. I had to upgrade it from 1.2.xx to 1.3.xx. Now the project appears to be ready to build (the default emulator Nexus config is now enabled). Rebuild the project for the emulator just to make sure. Then I had to unplug my device from the USB hub and connect it to Mac directly. Now Android Studio sees my device. Plug the device again into the USB hub. Now Android Studio sees my device with the hub, too.
特别是如果你以前有一个连接,如果你正在使用一些使用ADB连接到你的手机的其他应用程序-关闭该应用程序。我有总指挥官,有插件的ADB连接到手机,这解决了我的问题。
打开USB调试开关,将设备连接到PC。等待设备被PC检测到。连接时,关闭USB调试,然后再次打开。
我相信这对外面的人很有用。 在我的情况下,我在mac上运行Android Studio,也尝试Visual Studio Xamarin。同时打开这两扇门会造成这种冲突。所以关闭Visual就足够了。
尝试改变usb连接模式到midi设备。这对我很管用。
推荐文章
- 警告:API ' variable . getjavacompile()'已过时,已被' variable . getjavacompileprovider()'取代
- 安装APK时出现错误
- 碎片中的onCreateOptionsMenu
- TextView粗体通过XML文件?
- 如何使线性布局的孩子之间的空间?
- DSL元素android.dataBinding。enabled'已过时,已被'android.buildFeatures.dataBinding'取代
- ConstraintLayout:以编程方式更改约束
- PANIC: AVD系统路径损坏。检查ANDROID_SDK_ROOT值
- 如何生成字符串类型的buildConfigField
- Recyclerview不调用onCreateViewHolder
- Android API 21工具栏填充
- Android L中不支持操作栏导航模式
- 如何在TextView中添加一个子弹符号?
- PreferenceManager getDefaultSharedPreferences在Android Q中已弃用
- 在Android Studio中创建aar文件