![](/img/trans.png)
[英]Mixing android dependency versions error message in build.gradle file, however can't find the dependencies that are different
[英]build error, mixing versions in build gradle
自從我將此代碼添加到gradle文件中以來,我還沒有遇到此問題,請嘗試:
// use default version for all support repositories
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion 'PUT_THE_VERSION_YOU_WANT' //26.0.1
}
}
}
}
您可能必須添加multiDexEnabled true
insinde android
。
刪除后嘗試
buildToolsVersion '27 .0.3'*
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.