How to reduce the size of APK
The larger ones in apk are generally image resources, so files, and referenced JARs.
So, you can find breakthroughs from these places.
Image resources,
Compress all image resources https://tinypng.com/
Use .9 pictures
Use webp
Use vector graphics
Status changes and other pictures can be done with selector
If the requirements are not high, just adapt and make two sets of pictures: h-dpi xxh-dpi
so library
Generally, it is not necessary to support the x86 architecture. You can delete the so file under this architecture
Delete some unused so libraries. It is common to refer to Baidu Maps. As long as the positioning function is used, all so libraries are introduced
Enable compression when packaging to avoid confusion
Reference link: http://www.fqxyi.com/Android/...
What else can I say? Just search it on Baidu and you will know.
The simplest and most effective method:
Image format adjustment: change to webp
Remove unused resources
proguard on
The larger ones in apk are generally image resources, so files, and referenced JARs.
So, you can find breakthroughs from these places.
Image resources,
Compress all image resources https://tinypng.com/
Use .9 pictures
Use webp
Use vector graphics
Status changes and other pictures can be done with selector
If the requirements are not high, just adapt and make two sets of pictures: h-dpi xxh-dpi
so library
Generally, it is not necessary to support the x86 architecture. You can delete the so file under this architecture
Delete some unused so libraries. It is common to refer to Baidu Maps. As long as the positioning function is used, all so libraries are introduced
Enable compression when packaging to avoid confusion
Reference link: http://www.fqxyi.com/Android/...
What else can I say? Just search it on Baidu and you will know.
The simplest and most effective method:
Image format adjustment: change to webp
Remove unused resources
proguard on