How To Reduce The Apk Size Of My Android App With OpenCv Library Integrated
I have searched for this a lot, but didn't get a solution and hence posting this. Scenario: I'm building an Android app which uses opencv library. When I build the APK file the si
Solution 1:
You can enable ABI splitting in the build.gradle file like this:
android {
// Some other configuration here...
splits {
abi {
enable true
reset()
include 'x86', 'armeabi', 'armeabi-v7a', 'mips'
universalApk false
}
}
}
Refer this link https://realm.io/news/reducing-apk-size-native-libraries/
Solution 2:
Use proguard to obfuscate, minify, shrink resources. Just make sure to read docs by OpenCV for their proguard rules, Run android lint for unused resources.
Post a Comment for "How To Reduce The Apk Size Of My Android App With OpenCv Library Integrated"