Reputation: 12544
I am tring to reduce the output app file size, there are two diffrent library for my app:
Arm64-V8a and armeabi-v7a
I want to know is it require to include both of them ?
Upvotes: 1
Views: 5272
Reputation: 83
This is a valid question. If you are not going to run your app on emulator and run only on Mobile devices, then you can remove armeabi-v7a, arm64-v8a, x86 and x86_64 libs by placing below code in project build.gradle This will definitely reduce your apk file size.
defaultConfig {
applicationId "com.xxxx.xxxxx.xxxx.xxxx"
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}
Upvotes: 2
Reputation: 4327
In order to support all devices CPU architecture you need to keep the both of them and adding x86 & x86_64 as well, however to reduce the APK size try the following :
true
Upvotes: 1