问题描述
我已经开发了一个应用程序,它主要是在C ++中,由NDK编译的.so
库如常。我们知道,本机应用程序必须建立单独的每个CPU架构;所以,我有不同的所以
文件 armeabi
和 armeabi-V7A
。 (我故意漏掉 86
和 MIPS
,因为没有多少具有这些结构的Android设备被释放。)
I have developed an app which is mostly in C++ and is compiled by NDK to .so
libraries as usual. We know that native apps have to be build for each CPU architecture separately; So I have different so
files for armeabi
and armeabi-v7a
. (I deliberately left out x86
and mips
, since not many Android devices with these architectures are released.)
不过,规模非常大,每个所以
文件大约需要的空间 90 MB
,我想酌减。
However, the size is very big and each so
file takes about 90 MB
of space and I want to reduce it.
我知道我可以离开 armeabi-V7A
,由于向后兼容的,但是在这种情况下,应用程序将运行速度很慢。
I know I can leave out armeabi-v7a
, because of backward compatibility, but in that case the app will run very slowly.
考虑到我的应用程序只支持安卓ICS及以上(的minSdkVersion =14
),我可以安全地删除事实 armeabi
并假设所有这些新设备的使用 armeabi-V7A
?或者一些设备仍可使用旧的 armeabi
,而不是 armeabi-V7A
架构?
Considering the fact that my app supports only android ICS and above (minSdkVersion="14"
), Can I safely remove armeabi
and suppose that all of these new devices use armeabi-v7a
? Or some of the devices may still use the old armeabi
and not armeabi-v7a
architectures?
推荐答案
最初的Android源为Android 4.0不支持的ARMv5 / ARMv6的任何更长的时间,但也有定制构建它是在ARMv6上运行 - 见http://android.stackexchange.com/questions/34958/what-are-the-minimum-hardware-specifications-for-android关于更多细节。我不知道如果能得到认证这样的Android版本兼容的ARMv6的设备,或者只适用于非官方固件。
The original Android source for Android 4.0 doesn't support ARMv5/ARMv6 any longer, but there are custom builds of it that run on ARMv6 - see http://android.stackexchange.com/questions/34958/what-are-the-minimum-hardware-specifications-for-android for details on this. I'm not sure if one can get an ARMv6 device certified compatible with such Android releases, or if it only is applicable for unofficial firmwares.
所以,是的,也许,在原则上,您可以删除 armeabi
如果您的应用程序需要使用Android 4.0,但我不知道是否有任何这样的官方保证。
So yes, maybe, in principle, you could drop armeabi
if your app requires Android 4.0, but I'm not sure if there is any such official guarantee.
这篇关于它是安全的只支持armeabi-V7A为Android 4.0或以上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!