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


当前回答

令人惊讶的是,在Debian Linux上对我有效的只有:

adb kill-server

不用再开始了!!

我一关闭服务器,设备就出现在Android Studio中。我发现这一点的唯一原因是我的终端模拟器窗口是透明的。: D

其他回答

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

就我而言,我知道这很蠢,但我必须这么做。

我尝试了以上所有的解决方案,没有一个有效。t射击的一个关键是当adb设备不会列出该设备时,那么您就知道您还没有烹饪气体。

在设备通过adb注册为设备之前,在USB模式之间切换不会有效果。你会知道什么时候发生,因为你会得到一个关于RSA密钥的提示。

这是一个相对较新的Windows 7安装。在手机的USB通知区,我切换到“安装驱动程序”,让它安装我的adb驱动程序。在我的情况下,我永远不会在互联网上得到任何合法的东西。

一旦我看到成功安装,我切换到PTP,它就工作了。

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

有些电缆不能用于开发人员模式或传输文件。一个解决办法是更换你的有线电视,不要浪费时间。

Trendblog邮件

编辑

一些USB3端口也会引起问题。不确定是否有办法检查电缆/usb是否工作。但是有一种方法可以检测出USB类型是USB2还是USB3?. 如果您正在使用USB3,也可能是端口问题。

尝试以下解决方案(适用于Windows):

进入sdk工具安装路径,在\sdk\platform-tools文件夹下运行以下命令: 亚洲开发银行设备

如果你的设备列出了它应该显示如下内容:

C:\android\sdk\platform-tools>adb devices
List of devices attached
081e96500591f039        device

如果没有,请遵循以下方法:

Try these commands: adb kill-server adb start-server Make sure your phone has Developer Options in Settings (if not, go to Settings, About phone (or device), click on Android Version multiple times until you see a message). Make sure USB debugging on your phone is enabled (go to Developer Options in Settings and turn it on) Make sure you have Select USB Configuration set to MTP (this is also in Developer Options). Make sure you can see your files in your device in Windows Explorer when you connect via USB. Make sure you have the driver for your device properly installed (most of the time, this happens when you first plug in your USB cable). In Windows, right click on Computer, and go to Device Manager, check if you have Android Device right on the root folder and under it should be Android Composite ADB Interface. If you don't have this, you have to download the Google USB Driver. Get it here:

http://developer.android.com/sdk/win-usb.html

在设备管理器中,找到您的设备(应该有黄色感叹号),右键单击,并更新驱动程序(打开带有您刚刚下载的驱动程序的文件夹) 如果这不起作用,尝试重新启动Android Studio或重新插入设备。

一些便宜的设备(一些30美元的平板电脑)不提供USB驱动程序来连接设备管理器,所以在这种情况下你就不走运了。