splits defining a splits block, you can tell Gradle to create an APK for each ABI listed :
include "armeabi", "armeabi-v7a", "x86", "mips"
Alternatively, you can include all the necessary ABIs in APP one by adding the following filter:
android { (...) defaultConfig { (...) ndk { // allow only 32bit *.so libs abiFilters "armeabi", "armeabi-v7a", "x86", "mips" } }
}
Both approaches will exclude 64-bit functionality that might run into the 32-bit HERE SDK , but the latter will support more devices with one APK.
Some libraries, such as the new Android Room Persistence library, add 32-bit flavors along with two 64-bit ABI arm64-v8a and x86_64 fragrances . Since HERE the SDK currently provides only a 32-bit library, it should be safe to exclude 64-bit lib options. On the other hand, it is expected that 64-bit devices can gracefully handle 32-bit libraries.
source share