Reducing size of apk through libraries

岁酱吖の 提交于 2019-12-08 13:31:20

问题


I want to decrease the size of apk.I have already used Lint and Proguard to remove unused resources and reduce size.Now i am looking at libraries like ButterKnife which can reduce the lines of code.Are their any other good libraries which can help in minimizing lines of code and hence help in reducing size of apk?


回答1:


There is a huge list of libraries available which can reduce the line of codes for common operations you perform in Android:

  1. Retrofit 1.9.0 : for REST API calls
  2. Event Bus 2.4.0 : to get rid of interfaces
  3. Butterknife 6.1.0 : for UI annotations
  4. Lombok : for getter setter
  5. Gson2.2.4 : JSON parsing
  6. EventBus : for event handling

and many more.

http://retrofiteventbus.blogspot.in/2015/02/this-is-what-they-sayeventbus-less-code.html



来源:https://stackoverflow.com/questions/29151530/reducing-size-of-apk-through-libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!