不要再build.gradle中使用动态版本的依赖

为什么80%的码农都做不了架构师?>>>   hot3.png

今天在看Dan Lew大神的博客发现最新的文章就是 “Don't use dynamic versions for your dependencies”

Everyone, please, to stop using dynamic versions for your dependencies.

In Gradle, dynamic versions use the + sign like so:

compile 'com.android.support:appcompat-v7:23.0.+'

Ideally, your builds should be predictable and consistent. Identical source code should yield the same result, every time you build.

解决的方法如下图

博客的传送门 http://blog.danlew.net/2015/09 ... cies/


转载于:https://my.oschina.net/MStart/blog/514707

你可能感兴趣的:(不要再build.gradle中使用动态版本的依赖)