Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?
当前回答
我一直在解决同样的问题。 我已经尝试了上面帖子中关于这个主题的所有技巧。
我的情况是: 电脑都看过我的平板电脑了 -在开发人员模式上有调试usb选项 SDK中的adb看不到我的设备,杀死和启动都没用
问题是我的win8上有三星Galaxy驱动程序。当我去设备管理器,有联想A7600平板电脑黄色标记。设置->实现驱动程序->从现有的选择,我把三星驱动程序连接到这一个。
这招很管用。
其他回答
Android Studio看不到手机的原因有很多。
其中之一是ADB接口驱动程序的问题。你可以在设备管理器中查看:
如果你没有ADB接口驱动程序,那么使用本指南为英特尔芯片组安装它:在Windows计算机上安装Android调试桥(ADB) USB驱动程序。
如果你有其他的,但不是英特尔,然后尝试在制造商的网站上搜索驱动程序。
对于小米手机,在开发者模式菜单的最底部关闭MIUI优化。
对我有用的是在你的手机设置下取消usb调试模式 开发人员选项,并允许再次它将 显示我的设备选项
尝试以下命令并重新连接您的设备,它将显示。
亚行kill-server
切换到PTP USP选项而不是MTP是解决方案。
我的设置
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.
推荐文章
- 警告: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文件