为什么我需要在armeabi-v7a和armeabi文件夹中都放* .so文件? [英] why I need put *.so files in both armeabi-v7a and armeabi folders?
问题描述
我必须由其他人使用.so lib文件,并且有必要在两个文件夹中放入相同的文件.否则,安装不能保证将lib文件放置在/data/data//lib中. 为什么?
I have to use a .so lib file by others, and it is necessary put the same file in both folders. Otherwise installing can NOT guarantee the lib file be placed in /data/data//lib. why ?
推荐答案
实际上是不一样的. armeabi-v7a
针对具有浮点操作支持的v7a版本进行了优化.使用armeabi-v7a
作为目标设备,它将比不提供浮点运算支持的armeabi
运行更快.可以在armeabi
中打开库,也可以,但是如果您的应用程序在armeabi-v7a
平台上运行,则无法利用目标CPU的优势.
Actually it's not the same. armeabi-v7a
is optimized for v7a version which has float point operation support. With armeabi-v7a
as the target device, it will run faster than armeabi
which doesn't provide float point operation support. It's okay if you let your librariese on in armeabi
, but if you can't take the advantage of the target CPU if your app is run on armeabi-v7a
platform.
为您的本机库使用不同的分离目录将使您的应用程序更具可移植性,如果您希望您的应用程序在当前支持的任何Android设备或模拟器上运行,则应提供x86
,x86_64
,mips
等.
Have the different separated directory for your native library will let your app more portable, you should provide x86
,x86_64
,mips
, etc. if you want your app run on any Android device or emulator currently supported.
这篇关于为什么我需要在armeabi-v7a和armeabi文件夹中都放* .so文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!