添加:app下的 build.gradle
android{
enable=reue
}
}
扩展阅读
RxJava / RxAndroid
极力推荐的代码家干货:http://gank.io/post/560e15be2dca930e00da1083
Retrofit:
Retrofit 官方文档:http://square.github.io/retrofit/
Retrofit 使用介绍:http://www.cnblogs.com/angeldevil/p/3757335.html
Retrofit 离线缓存策略:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2016/0115/3873.html
Databinding
MVC,MVP 和 MVVM 的图示:http://www.ruanyifeng.com/blog/2015/02/mvcmvp_mvvm.html
DataBinding 用户指南:http://segmentfault.com/a/1190000002876984
Github 上比较全面的:https://github.com/LyndonChin/MasteringAndroidDataBinding
dependencies里面添加apt 'com.android.databinding:compiler:2.3.0',才可以继续使用