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


当前回答

要更改应用程序在Android Studio中单击运行或调试时的默认值,请遵循以下步骤:

1. 点击运行

2. 点击编辑配置

3.选择项目

4. 在Android应用程序页面的General标签下找到目标设备部分。

这似乎是您切换项目构建内容的地方。如果你导入一个项目,它实际上默认为模拟器,不知道为什么。您还可以选择“打开选择部署目标对话框”来列出连接和模拟设备。

其他回答

我一直在解决同样的问题。 我已经尝试了上面帖子中关于这个主题的所有技巧。

我的情况是: 电脑都看过我的平板电脑了 -在开发人员模式上有调试usb选项 SDK中的adb看不到我的设备,杀死和启动都没用

问题是我的win8上有三星Galaxy驱动程序。当我去设备管理器,有联想A7600平板电脑黄色标记。设置->实现驱动程序->从现有的选择,我把三星驱动程序连接到这一个。

这招很管用。

执行以下步骤来解决上述问题。

右键单击项目 选择“创建运行配置” 所有的测试。(第二个选项) 在“General”页签中——>目标设备

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).

我现在可能会碰到这个线程,但它是谷歌搜索的第一个结果,我有很多麻烦找到这个问题的答案,所以我认为这应该作为一个解决方案添加。

如果你仍然有这个问题(2015年夏天之后),也许你应该:

点击这里:http://developer.android.com/sdk/win-usb.html#top 下载驱动程序 重新安装它

我最近安装了Windows 10(不是升级,是一个干净的安装),我忘记了ADB USB驱动程序

尝试以下解决方案(适用于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驱动程序来连接设备管理器,所以在这种情况下你就不走运了。