问题
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:
- Retrofit 1.9.0 : for REST API calls
- Event Bus 2.4.0 : to get rid of interfaces
- Butterknife 6.1.0 : for UI annotations
- Lombok : for getter setter
- Gson2.2.4 : JSON parsing
- 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