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


当前回答

由于似乎没有人提到这个问题,我在Windows 10上遇到了这个问题,并解决了它:

通过确保ANDROID_HOME在系统环境变量中被设置,然后重新启动Android Studio(你可能需要注销并重新登录/重新启动explorer.exe)。 可能不相关,但在Windows 10上确保telnet客户端通过Start -> 'features'

其他回答

检查设备驱动程序 如果您的设备是Galaxy安装Kise将搜索您的驱动程序

Env - AS 3.3.2 Linux 4 (ubuntu)

in AS used menu Tools > Create desktop entry 

桌面文件内容-(注意该路径不包括Platform-tools)

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Android Studio
Icon=jetbrains-studio.png
Path=/home/rob/android-studio
Exec=sh -c ' /home/rob/android-studio/bin/studio.sh' 
StartupNotify=false
StartupWMClass=jetbrains-studio
OnlyShowIn=Unity;
X-UnityGenerated=true

注意SDK的位置。下面的平台工具“adb”将不会被桌面找到。上面的路径:

 $ which adb
/usr/local/src/android-sdk-linux/platform-tools/adb

在我的设置中,我的症状是任何终端都会列出设备OK,但AS中的工具栏按钮永远不会显示连接的设备…当我的手机通过USB线连接时,我看到的只有“没有设备”。

我的解决方案是在文件顶部添加正确的路径:

 ${AS_HOME}/bin/studio.sh ...

PATH=$PATH:/usr/local/src/android-sdk-linux/platform-tools:/usr/local/src/android-sdk-linux/tools

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 8中遇到过同样的问题,并找到了解决方案。

1)右键单击“我的电脑”。 2)点击管理器。 3)进入设备管理器。 4)右键单击设备名称(下面是其他设备)。 5)点击更新驱动程序。 6)点击下一步。 7)点击“Let me know…”标签。

驱动程序将自动安装。

它对我很有效。

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

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