javaandroidproguard

When using Proguard, the size of the lib file in the apk increases significantly. How do I prevent this?


When using Proguard, the size of the lib file in the apk increases significantly.

apk folder

Proguard worked correctly in the classes.dex file, but the entire lib folder size is increasing.

I tried adding some rules to the proguard-rules.pro file but it didn't work.


Solution

  • android {
        defaultConfig {
            ndk {
                abiFilters 'arm64-v8a', 'x86_64'
            }
        }
    }
    

    I used this code in the document and my problem was solved.