Reducing android app (apk) size

前端 未结 16 1449
借酒劲吻你
借酒劲吻你 2020-11-29 20:51

I would be now publishing my first app on Google play store. I have already compressed images used in my app. And I have some questions regarding the app size.

16条回答
  •  感情败类
    2020-11-29 21:10

    You can try another answers and they are very good but there is another small trick for reducing massive amount of apk size.
    We use many libraries in our projects. some of them developed in Native language ( c ) and some of them developed for a specific version of architecture.

    We have some architecture :

    • armeabi : Uncommon
    • armeabi-v7a : Common
    • arm64-v8a : Common
    • mips : Rare
    • mips64 : Rare
    • x86 : Common
    • x86_64 : Uncommon

    You can filter target architectures and remove useless options. for example :

    buildTypes {
        debug {
            ...
        }
        release {
            ...
            ndk {
                abiFilters "arm64-v8a", "armeabi-v7a", "x86"
            }
        }
    }
    

提交回复
热议问题