Separate Android APKs based on native 3rd party library code for each processor architecture

I am using the Android Realm library, which comes with separate native shared libraries for each processor architecture including armeabi, x86, etc. To avoid bundling them all into one big APK and wasting space, d would like to make separate APKs with a corresponding shared library for each architecture.

According to this , adding the following to my build.gradle file:

splits {
    abi {
        enable true
        reset()
        include 'armeabi', 'armeabi-v7a', 'mips', 'x86'
        universalApk true
    }
}

      

I need to get 5 separate APK files that I am making. But they are the same file size! Do split APKs only work for building code in the app itself, not in third party libraries?

+3


source to share





All Articles