简体   繁体   English

android模拟器可以在ARM设备上运行吗

[英]Can the android emulator run on an ARM device

I need to do a lot of android testing where the device I use has to be ARM based.我需要做很多安卓测试,我使用的设备必须是基于 ARM 的。 While it is possible to create these devices in the default android emulator they are of course very slow on my x86 development machine.虽然可以在默认的 android 模拟器中创建这些设备,但它们在我的 x86 开发机器上当然非常慢。

A lot of this testing runs headless and automatically so I thought about setting up an ARM server and emulate the devices there in the hope that the performance would be better.很多这种测试都是无头自动运行的,所以我考虑设置一个 ARM 服务器并模拟那里的设备,希望性能会更好。 While looking around I realized that there is nearly no information about this.环顾四周,我意识到几乎没有关于此的信息。 Is it possible to run an android emulator (ether the one provided with the SDK or any other) on a ARM machine to get higher performance for the virtual devices?是否可以在 ARM 机器上运行 android 模拟器(随 SDK 提供的模拟器或任何其他模拟器)以获得更高的虚拟设备性能?

This is actually a very good question.这其实是一个很好的问题。

Some cloud services like Amazon are providing the arm based machines.亚马逊等一些云服务正在提供基于 arm 的机器。 With those machines, we can run android emulators in cheap price.有了这些机器,我们可以以低廉的价格运行安卓模拟器。

Google doesn't provide the android emulator binary for arm. Google 不提供 arm 的 android 模拟器二进制文件。 But you can build those emulator binaries from AOSP.但是您可以从 AOSP 构建这些模拟器二进制文件。 You have to do some work such as editing of cross-compile build files, adding target directories and building related third party libraries in arm architecture.你必须做一些工作,例如编辑交叉编译构建文件,添加目标目录以及在arm架构中构建相关的第三方库。

If you need any further information, I would attach detailed technical tips or step-by-step manuals.如果您需要任何进一步的信息,我会附上详细的技术提示或分步手册。

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

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