Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?
当前回答
如果你仍然有这个问题(2015年夏天之后),也许你应该:
点击这里:http://developer.android.com/sdk/win-usb.html#top 下载驱动程序 重新安装它
我最近安装了Windows 10(不是升级,是一个干净的安装),我忘记了ADB USB驱动程序
其他回答
我相信这对外面的人很有用。 在我的情况下,我在mac上运行Android Studio,也尝试Visual Studio Xamarin。同时打开这两扇门会造成这种冲突。所以关闭Visual就足够了。
我的设置
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.
在更新到Android Studio 3.1后,它无法看到我的设备,但adb可以看到它们。
要解决这个问题,你需要开始调试模拟器一次,然后在运行->编辑配置中切换回USB设备…- >目标。这一次它应该会起作用。
Android Studio 3.1与以前的版本相比有很多变化,所以你必须重置调试目标才能让你的设备正常工作。
在Windows 7上,唯一对我有用的就是这个。 进入设备管理器->在Android手机下->右击并选择“启用”
在我的情况下,我必须设置我的android启用USB调试。
https://developer.android.com/studio/run/device#setting-up
推荐文章
- 警告: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文件