Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?
当前回答
检查设备驱动程序 如果您的设备是Galaxy安装Kise将搜索您的驱动程序
其他回答
Android Studio看不到手机的原因有很多。
其中之一是ADB接口驱动程序的问题。你可以在设备管理器中查看:
如果你没有ADB接口驱动程序,那么使用本指南为英特尔芯片组安装它:在Windows计算机上安装Android调试桥(ADB) USB驱动程序。
如果你有其他的,但不是英特尔,然后尝试在制造商的网站上搜索驱动程序。
对于小米手机,在开发者模式菜单的最底部关闭MIUI优化。
我的设置
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.
如果每个配置都是排序的,那么对我来说有效的方法是将设备切换到PTP连接,然后再切换回MTP。
尝试改变usb连接模式到midi设备。这对我很管用。
在我的情况下,解决方案是关闭重新启动Android Studio
推荐文章
- 警告: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文件