I am building native library using NDK21d for 2 archs: armeabi-v7a and arm64-v8a.
I am embedding both libraries .so (32 and 64) inside the APK, which has minsdkversion set to 21.
But I am facing an issue where the C function __register_atfork is not defined in arm64 library if API Level < 23 (21 and 22 = Android 5.x, eg Lollipop).
So, as a workaround I would like to force usage of armeabi-v7a for Lollipop devices, even if they support 64 bits.
Is that possible ? In the build.gradle ?
Thanks in advance
If there is no performance difference in app,
you can use armeabi-v7a arch only,
it will work on arm64 devices as they are compatible.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.