Android虚拟设备 - Armeabi-v7a vs x86_64 [英] Android Virtual Device - Armeabi-v7a vs x86_64

查看:458
本文介绍了Android虚拟设备 - Armeabi-v7a vs x86_64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作自己的Android应用程序。我使用的是Ubuntu 64bit和IntelliJ。在虚拟设备配置中,它要求我选择系统映像。所有选项旁边都有下载,这意味着我没有下载任何系统映像。

I want to make my own Android application. I am using Ubuntu 64bit and IntelliJ. In Virtual Device Configuration, it asks me to choose a system image. All of the options have a Download beside, which means I haven't downloaded any system image.

3个选项可用于 Lollipop (API级别21),它们是Armeabi-v7a,x86_64和x86。(我使用的是Ubuntu 64位所以我不应该使用x86吗?)

There are 3 options available for Lollipop(API level 21), which are Armeabi-v7a, x86_64 and x86.(I am using Ubuntu 64 bit so I should not use x86 right?)

任何人都可以解释什么是Armeabi-v7a? Armeabi-v7a和x84_64有什么区别?我应该选择什么版本(哪一个运行得更快;))?

Can anyone explain what is Armeabi-v7a for? What are the differences between Armeabi-v7a and x84_64? What "version" should I choose (and which one runs faster ;))?

推荐答案

根本区别在于CPU是正在模拟。

The fundamental difference is the CPU that is being emulated.


  • Armeabi-v71将ARM处理器用作电子邮件。 (有关ARM选项的更多详细信息,请参阅:此问题。 )

  • x86_64模拟64位X86处理器。

  • Armeabi-v71 emaulates an ARM processor. (For more details on ARM options see: this question.)
  • x86_64 emulates a 64-bit X86 processor.

决定选择哪个真的取决于你的目标设备。 ARM处理器更为普遍,因此使用ARM虚拟设备测试应用程序通常是有意义的。

The decision on which to choose really depends upon your target device. ARM processors are far more prevalent, so testing your app with the ARM virtual devices often makes sense.

另一个考虑因素是本机代码。如果您的应用包含任何本机代码或包含本机代码的第三方库,则您选择的虚拟设备非常重要。本机代码被编译为特定于CPU的库(.so文件)。因此,您将使用ARM虚拟设备测试应用程序中的ARM库,并使用X86虚拟设备测试应用程序中的X86库。

Another consideration is native code. If your app contains any native code, or 3rd-party libraries with native code, then your choice of virtual device is important. Native code is compiled into libraries (.so files) that are CPU-specific. Thus you would use the ARM virtual devices to test the ARM libraries in your app, and the X86 virtual devices to test the X86 libraries in your app.

最后一个考虑因素是执行速度。 X86虚拟设备将在X86台式机上运行得更快。

A final consideration is speed of execution. X86 virtual devices will run faster on X86 desktop machines.

这篇关于Android虚拟设备 - Armeabi-v7a vs x86_64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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