您的位置:首页 > 移动开发 > Android开发

android studio学习----构建(gradle )依赖时使用动态依赖的问题

2016-04-24 18:56 459 查看
今天在看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/



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: