简体   繁体   English

Genymotion设备在OS X Yosemite上的Eclipse中不起作用

[英]Genymotion devices not working in Eclipse on OS X Yosemite

I updated from Mavericks to Yosemite and now I can't use any Genymotion device anymore. 我从小牛队更新到优胜美地,现在我再也不能使用任何Genymotion设备了。
You can see the devices in Eclipse, but when you want to run an application you can't select one of these devices. 您可以在Eclipse中查看设备,但是当您要运行应用程序时,无法选择其中一个设备。

I've already re-installed Eclipse, Genymotion and Virtualbox... 我已经重新安装了Eclipse,Genymotion和Virtualbox ......


The Genymotion Virtual Devices Manager shows a Nexus 5 which is stated 'On' Genymotion虚拟设备管理器显示一个Nexus 5,其中显示为'On' Genymotion虚拟设备管理器显示Nexus 5,统计信息为“开启”

When I want to run my application, there is no Nexus 5.. 当我想运行我的应用程序时,没有Nexus 5 .. Android设备选择器不显示Nexus 5

This is a bug in eclipse - OSX yosemite, what you need to do is in the Android Device Chooser Window, try to RESIZE THE SERIAL NUMBER TAB and you will see the genymotion emulator that is running 这是eclipse中的一个错误 - OSX yosemite,您需要做的是在Android设备选择器窗口中,尝试调整SERIAL NUMBER选项卡,您将看到正在运行的genymotion模拟器

If you don't see it, or the Android Device Chooser Window doesn't appear, check three things before running again: 如果您没有看到它,或者没有出现Android设备选择器窗口,请在再次运行之前检查三件事:

  1. Developer Options is enabled from settings (by repeated touching 7 times the build number in about phone), even though developer options is available in the list of apps in genymotion emulator 开发人员选项是通过设置启用的(通过重复触摸关于手机中内置版本号的7倍),即使genymotion模拟器中的应用列表中提供了开发人员选项
  2. In Settings>Security, make sure "Unknown Sources" is enabled 在“设置”>“安全性”中,确保已启用“未知来源”
  3. Go to Run Configuration (for Android app), select the Target Tab, Enable Always prompt to pick device and hit apply. 转到“运行配置”(对于Android应用),选择“目标”选项卡,“始终启用”提示选择设备并单击“应用”。

Additionally I downloaded the jar files from Genymotion Download Page manually and replaced it in the plugin folder of eclipse. 另外,我手动从Genymotion下载页面下载了jar文件,并将其替换为eclipse的插件文件夹。

EDIT 编辑

FYI, a bug has been opened in AOSP's issue tracker. 仅供参考,AOSP的问题跟踪器中已经打开了一个错误。

Issue 78436: [ADT/Eclipse] Cannot see my device in the Android Device Chooser dialog even though it is there in the Devices view 问题78436:[ADT / Eclipse]即使设备视图中存在设备,也无法在Android设备选择器对话框中看到我的设备

At bottom of this page, there is a link to 'Vote for this issue' ... 在本页底部,有一个“为此问题投票”的链接......

我可以通过一次连接真实设备来解决这个问题。

Please scroll down and see list of devices which is connected to ADB. 请向下滚动并查看连接到ADB的设备列表。 在此输入图像描述

在此输入图像描述

I had a similar issue, but my problem was that the emulated device was running Android 4.3 (SDK version 18), but the app had android:minSdkVersion="19" so since no compatible device was found the list was empty. 我有一个类似的问题,但我的问题是模拟设备运行Android 4.3(SDK版本18),但应用程序有android:minSdkVersion="19"因此,因为没有找到兼容的设备列表是空的。

Double check your emulated device version, and the minSdkVersion number, to make sure it's compatible. 仔细检查您的模拟设备版本和minSdkVersion编号,以确保它兼容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM