has different version for the compile (26.1.0) and runtime (27.1.1) classpath
在使用 fluttertoast 的時候遇到的
處理方式:
build.gradle
中最後面添加:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.1"
}
}
}
}
參考:github