从$NDK/docs/CPU-ARCH-ABIS.html:如果primary-abi
找到secondary
将不会被扫描。
III.3. Automatic extraction of native code at install time:
-----------------------------------------------------------
When installing an application, the package manager service will scan
the .apk and look for any shared library of the form:
lib/<primary-abi>/lib<name>.so
If one is found, then it is copied under $APPDIR/lib/lib<name>.so,
where $APPDIR corresponds to the application's specific data directory.
If none is found, and a secondary ABI is defined, the service will
then scan for shared libraries of the form:
您可以通过以下方式进行检查;
$ adb shell getprop|grep abi
[ro.product.cpu.abi2]: [armeabi]
[ro.product.cpu.abi]: [armeabi-v7a]
如您所见,主要 abi 比次要 abi 更具体。
解决方案方面,您可以将 armv5 库移动到 armv7-a 下。它应该可以工作,但它只对 . 下的此类设备可见Google Play
。