After adding openCV 3.0 as library in Android Studio, I observed my apk file has grown to above 50MB, which is obviously not ideal.
Unzipping the apk file revealed that there are multiple target architectures in the lib
directory, namely arm64-v8a, armeabi, armeabi-v7a, mips, mips64, x86, x86_64
. Each of them occupies 10+MB.
Is it safe to remove some of the target architectures from my source jniLibs
directory to reduce the apk size? If so, which targets should I remove? I am targeting relatively new devices so as long as it runs on newer devices I am fine with it.