码迷,mamicode.com
首页 > 其他好文 > 详细

gradle重复依赖终极方案解决办法

时间:2018-07-31 19:17:59      阅读:556      评论:0      收藏:0      [点我收藏+]

标签:request   each   note   The   repo   jce   port   uil   requested   

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath ‘com.android.tools.build:gradle:3.1.3‘
classpath ‘org.greenrobot:greendao-gradle-plugin:3.2.1‘
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}

subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == ‘com.android.support‘
&& !details.requested.name.contains(‘multidex‘) ) {
details.useVersion "25.4.0"
}
}
}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

gradle重复依赖终极方案解决办法

标签:request   each   note   The   repo   jce   port   uil   requested   

原文地址:https://www.cnblogs.com/baiyi168/p/9396958.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!