简体   繁体   中英

Android SDK specific resources in the APK

enter image description here

As highlighted in the image i am observing that APK contains all the Android SDk specific resources in it and is making APK size bigger by 3 MB.

Any one help me how can i avoid this during the application build.

I was using compileSDKVersion 23. After migrating to 30 i am seeing this issue.

Any help would be much appriciated.

I was using compileSDKVersion 23. After migrating to 30 i am seeing this issue.

I would like t use the compileSDKVersion 30 and i am expecting that apk shouldn't contain the android sdk resources as i am not referring to those in my app.

ShrinkResources is useful to reduce the dimension of your generated APK, stripping out any unused resource.

buildTypes {
    release {
        signingConfig signingConfigs.release
        multiDexEnabled true
        minifyEnabled true
        shrinkResources true
        
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM