Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?
当前回答
尝试以下解决方案(适用于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驱动程序来连接设备管理器,所以在这种情况下你就不走运了。
其他回答
所以我使用的是Android Studio 3.1,上面没有任何工作。唯一解决这个问题的是启用“使用libusb后端”复选框,见附件
尝试改变usb连接模式到midi设备。这对我很管用。
在我的情况下,解决方案是关闭重新启动Android Studio
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
我使用的是Nougat API 24的Android版本,我通过更换USB线解决了一个设备问题。
推荐文章
- 警告: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文件