Android设备并不在Android设备选择器显示出来,但在亚行上市 [英] Android device does not show up in Android Device Chooser, but is listed in adb

查看:164
本文介绍了Android设备并不在Android设备选择器显示出来,但在亚行上市的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Mac OS的Eclipse ADT +。我通过USB连接的Nexus 5的,但它并没有在Android设备选择器显示出来,当我从Eclipse运行我的应用程序。事实上,它没有出现过一次,而且我可以部署我的应用程序到手机上,但它只是从Android设备选配消失了。

I'm using Eclipse+ADT on Mac OS. I have a Nexus 5 connected via USB, but it does not show up in the Android Device Chooser when I run my app from Eclipse. Actually, it did show up once, and I could deploy my app to the phone, but then it just disappeared from the Android Device Chooser.

真正奇怪的是,当我运行设备列出

The really weird thing is that the device is listed when I run

adb devices

在终端上。我甚至得到在Eclipse的LogCat中手机的调试信息,所以它清楚地连接和认可 - 但它仍然无法在设备选择器显示出来。我试图在这里提出的所有解决方案(重启手机,打开和关闭调试模式,重新启动亚行,重新启动Eclipse的,等) - 没有效果。

on the terminal. I even get the debug messages from the phone in Eclipse's LogCat, so it clearly is connected and recognized – but it still doesn't show up in the Device Chooser. I have tried all the solutions proposed here (rebooting the phone, turning debug mode on and off, restarting adb, restarting Eclipse, etc.) – to no effect.

任何想法?

推荐答案

极其相似什么,我只花了最后一个小时搞清楚。 OS X,Nexus 5上,亚行的设备出现,尝试一切在阳光下。

Eerily similar to what I just spent the last hour figuring out. OS X, Nexus 5, shows up in adb devices, tried everything under the sun.

在我的情况下,事实证明,即使未列出的设备,我可以preSS确定按钮,它推出了就好了。 (如下图所示)

In my case, it turned out that even though the device wasn't listed, I was able to press the OK button and it launched just fine. (seen below)

我不知道这是否也有帮助,但在此之前我偶然发现了这个解决方案,我修改了启动的配置选项,可以从改变总是提示来接设备到对所有兼容设备启动/ AVS的并入选活动设备选项。我跑了这一点,它的工作!我预计该设备才会开始显示在上面的菜单之后,但事实并非如此。然后,我意识到这没有关系,我可以点击OK,它会建立。进入数字。

I'm not sure if it also helped, but before I stumbled upon that solution, I edited my Launch config options to change from "Always prompt to pick device" to "Launch on all compatible devices/AVS'S" and selected the "Active Devices" options. I ran that and it worked! I expected the device to start showing up in the above menu afterwards, but it didn't. Then I realized it didn't matter and I could hit OK and it would build. Go figure.

这篇关于Android设备并不在Android设备选择器显示出来,但在亚行上市的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆