的build.gradle依赖汽车本身的更新 [英] build.gradle dependencies auto updates itself
本文介绍了的build.gradle依赖汽车本身的更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:design:22.2.1'
到
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:support-v4:23.1.0'
compile 'com.android.support:design:23.1.0'
每隔一段时间,机器人工作室将自动更改值这是非常恼人的,打破我的应用程序的最新版本。有没有一种方法,以prevent这种情况的发生?
Time to time, android studio will automatically change the values to the latest version which is extremely annoying and breaks my application. Is there a way to prevent this from happening?
做了谷歌的搜索和检索计算器,但没有出现了。
Did a google search and stackoverflow searched but nothing came up.
推荐答案
而不是:
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:design:22.2.1'
尝试:
playVersion = '8.3.0'
supportVersion = 'support-v4:22.2.1'
designVersion = '22.2.1'
compile "com.google.android.gms:play-services:$playVersion"
compile "com.android.support:$supportVersion"
compile "com.android.support:design:$designVersion"
记住以与替换
取值秒。
这篇关于的build.gradle依赖汽车本身的更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文