eclipse 刚刚将我的 OS X 升级到 Yosemite,Android 设备选择器没有显示设备 - 该怎么办?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26416532/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Just upgraded my OS X to Yosemite, Android Device Chooser not showing device - what to do?
提问by joel
After upgrading to OS X Yosemite I found that eclipse was not working because JAVA was not properly installed. I installed it and now I am able to open eclipse.
升级到 OS X Yosemite 后,我发现 eclipse 无法正常工作,因为 JAVA 没有正确安装。我安装了它,现在我可以打开 eclipse。
When I connect my device, I am able to see my device on the device list in eclipse. However when I run my project, I am unable to see it on Android device chooser. My device is getting detected by Eclipse but I am not able to select it to run.
当我连接我的设备时,我可以在 eclipse 的设备列表中看到我的设备。但是,当我运行我的项目时,我无法在 Android 设备选择器上看到它。我的设备被 Eclipse 检测到,但我无法选择它来运行。
This was working perfectly on my previous OS X Mavericks! Please help!
这在我以前的 OS X Mavericks 上运行得很好!请帮忙!
Thanks
谢谢
回答by Matt
It seems to be a layout bug.
这似乎是一个布局错误。
Drag one of the column headers in the device chooser where the device should be and change the column width and it magically appears!
将设备选择器中的列标题之一拖动到设备应位于的位置并更改列宽,它会神奇地出现!
You can also double click the device's row even when it's hidden, so you don't have to resize the column each time.
即使设备的行处于隐藏状态,您也可以双击它,这样您就不必每次都调整列的大小。
回答by Mehlyfication
Another working solution is:
另一个可行的解决方案是:
Disconnect and reconnect the device while the Android Device Chooser Popup is open.
当 Android 设备选择器弹出窗口打开时,断开并重新连接设备。
回答by jakeneff
If you have more than one device connected, tap the down arrow on your keyboard to reveal the hidden device. Then click OK or press Enter like normal. Otherwise, just press Enter. The device is already there, just not visible.
如果您连接了多个设备,请点击键盘上的向下箭头以显示隐藏的设备。然后单击“确定”或像往常一样按 Enter。否则,只需按 Enter。该设备已经在那里,只是不可见。
回答by Guy S
What worked for me was ticking on/off the USB debugging mode in the device Developers options, but the solution in the selected answer is better...
对我有用的是在设备开发人员选项中勾选打开/关闭 USB 调试模式,但所选答案中的解决方案更好......
回答by Michael
It seems like a Eclipse UI view refresh issue new to Yosemite. I notice that my logcat filter textview goes completely white as soon as it loses focus - making it look like you have no filter defined. Gross.
这似乎是优胜美地的新 Eclipse UI 视图刷新问题。我注意到我的 logcat 过滤器 textview 一旦失去焦点就会变成完全白色 - 看起来你没有定义过滤器。总的。
回答by Sean
Similar problem, after upgrading to Yosemite, but with a BlackBerry 10 device running an Android build from Eclipse.
类似的问题,升级到 Yosemite 后,但使用 BlackBerry 10 设备从 Eclipse 运行 Android 版本。
Solution:
Run app and wait for the Android Device Chooser to popup. My dialog showed an empty list.
Whilst the dialog is showing, disconnect and reconnect the device via the BlackBerry adb proxy. After doing so, the BlackBerry device automatically showed up in the dialog and I could choose it and run the build successfully.
解决方案:
运行应用程序并等待 Android 设备选择器弹出。我的对话框显示了一个空列表。在显示对话框时,通过 BlackBerry adb 代理断开并重新连接设备。这样做之后,BlackBerry 设备会自动出现在对话框中,我可以选择它并成功运行构建。