GiraffePlayer icon indicating copy to clipboard operation
GiraffePlayer copied to clipboard

How to reduce library size

Open MaheshEx1990 opened this issue 9 years ago • 2 comments

Hi

I have imported to my small video player app but apk size goes to 24MB after adding this library. Any solution to use it lightweight kind.

MaheshEx1990 avatar Feb 20 '17 15:02 MaheshEx1990

the player default support 6 CPU architecture:ARMv5, ARMv7, ARMv8,x86 and 86_64,if your project need't support all of the architectures,you can remove the folder in ijkplayer-java/src/main/jniLibs to generate a light APK

tcking avatar Feb 21 '17 04:02 tcking

like this:

android {
    ....
    defaultConfig {
        ....
        ndk {
            abiFilters "armeabi" //only keep arm
        }
    }
}

tcking avatar Feb 21 '17 04:02 tcking