android - 静态库改如何优化,缩减大小 ?
高洛峰
高洛峰 2017-04-18 09:53:25
0
2
608

现在项目里静态库很多总的大概有300M,如何优化这些静态库,缩减可执行文件大小?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
黄舟

Generally speaking, static libraries cannot continue to be optimized. We can only find other alternative solutions to replace static libraries, or optimize in other aspects, such as resource optimization, image, audio and video compression, etc.;

Your question is not clear. If you are optimizing executable files, it is recommended to use Google's first generation heap. If you are optimizing static libraries, it is recommended to compile and optimize first to avoid compiling multiple architectures, and then find alternative solutions.

Peter_Zhu

Static library files can be compressed first, such as into .gz format, and then write a filter class to decompress all .gz format data. Specifically, you can use this jar package directly: https://sourceforge.net /proje...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template