在新的 sdk 工具 v12 中安装 x86 映像
我已经升级到android sdk工具12。 正如谷歌的发行说明中所说: AVD 管理器和模拟器现在可以使用为 ARM v7 和 x86 CPU 编译的系统映像。
有人尝试过运行 x86 映像吗?有3.0以上的图片吗?
谢谢,
I've upgraded to android sdk tools 12.
As a release note google says:
The AVD manager and emulator can now use system images compiled for ARM v7 and x86 CPUs.
Has anyone tried to run a x86 image? Are there any 3.0+ images?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
在模拟器配置 SDK 的 GUI 中,CPU 类型下拉框被禁用。这可能是他们为 Android SDK 工具第 13 版所做的准备。 (也有可能我安装的平台版本没有 x86 映像)
我尝试显式地将我的模拟器映像之一运行为 x86,并得到以下结果:
我认为需要为 x86 显式创建模拟器映像...将是很高兴拥有 x86 映像,因此下划线 qemu 的性能会上升,因为它不需要模拟 ARM CPU 指令集...
In the GUI of the SDK for emulator configuration, the CPU type drop down box is disabled. Probably this is something they are preparing for the release 13 of the Android SDK tools. (it is also possible that non of my installed platform revision have x86 images)
I tried to run one of my emulator images as x86 explicitly, and get this:
I think the emulator image needs to be created explicitly for x86... Would be nice to have an x86 image so the performance of underlining qemu goes up, as it will not need to emulate ARM CPU instruction set...
您现在已经可以运行 http://www.android-x86.org/ 并使用 adb 通过 tcpip 连接到它。您不需要 SDK 支持。而且速度非常快。
否则,如果您在 Linux 上安装 Google TV 插件,您可以创建一个 Google TV avd,它将使用 x86。它确实只在 Linux 上工作得很好,因为这是它通过隧道正确连接到虚拟机管理程序的地方。
有各种关于如何正确设置的博客文章,例如 http: //commonsware.com/blog/2011/09/01/google-tv-emulator-seemingly-pointless.html
You can already run http://www.android-x86.org/ and connect to it with adb over tcpip right now. You do not need the SDK support for it. And it is very fast.
Otherwise if you install the Google TV add on on linux you can create a Google TV avd and that will use x86. It really works nicely only on Linux though since that is where it is tunneled to the hypervisor properly.
There are various blog post around on how to set that up properly e.g. http://commonsware.com/blog/2011/09/01/google-tv-emulator-seemingly-pointless.html
您应该安装 Intel® Atom™ Android x86 模拟器映像。
您可以在 此链接
You should install Intel® Atom™ Android x86 Emulator Image.
You could find detailed instructions at this link
您可以从 AOSP 构建您自己的 android x86 模拟器。以下是英特尔网站上的说明:
http://software .intel.com/en-us/articles/android-ia-emulator-gingerbread/
You can build your own android x86 emulator from the AOSP. Here are the instructions from the Intel website:
http://software.intel.com/en-us/articles/android-ia-emulator-gingerbread/
http://software.intel.com/ en-us/articles/android-virtual-device-emulation-for-ia/
更新的文章提供了有关使用 3.2 图像的信息,也许我的 sdk 不提供这样的选择(测试过 2.3.3、3.2和 4.0.3)
更可能的是,该文章指的是基于 intel 的 sdk 版本,而不是 android 开发者网站提供的版本。
他们可能会稍后添加 intel 映像(但模拟器确实需要基于 x86 的映像)并且还支持 intel abi
http://software.intel.com/en-us/articles/android-virtual-device-emulation-for-ia/
updated article provides info about using 3.2 images, perhaps my sdk does not offer such choice (tested 2.3.3, 3.2 and 4.0.3)
more likely the article refers to an intel based sdk build, that is not the one provided by android developer site.
They may add intel images (yet it's true the emulator needs x86 based images) later and support also intel abi
几个月后,android 4.0 的源代码发布了,我发现 x86 虚拟机比我尝试过的使用 Android 模拟器的任何解决方案都要快。
您可以在此处找到有关使用 android x86 映像的说明:http://www.android-x86.org/
After a few months passed, the source code for the android 4.0 was released and I find that the x86 virtual machines are faster than any solution I tried which used the Android Emulator.
You can find instructions on using android x86 images here: http://www.android-x86.org/
我按照此处的说明进行操作,并能够构建一个有效的 x86 映像。它运行得很好,比 ARM 模拟快得多,前提是启用了 kvm,您可以通过在 Ubuntu 机器上执行“sudo apt-get install kvm”来实现。要检查 kvm 是否已在您的计算机上,请执行 lsmod | grep kvm。
为了回答另一个问题,Google 尚未发布任何带有其 SDK 的图像,这是 Google 某人回复我的 问题 关于它。
他们计划很快发布姜饼图像。这就是为什么 Android 工具的 CPU 框中没有下拉选项显示“Intel”或 x86。
I followed the instructions here and was able to build a working x86 image. It runs great, much faster than ARM emulation, provided kvm is enabled, which you can by doing "sudo apt-get install kvm" on Ubuntu machines. To check if kvm is already on your machine, do an lsmod | grep kvm.
To answer the other question, Google hasn't released any images with it's SDK yet and this is the thread where someone from Google responded to my question about it.
They plan to release Gingerbread images pretty soon. Which is why there is no drop down option saying "Intel" or x86 in the CPU box of the Android tool (yet).