我的是xml发生的错误
解决方法是在build.gradle下面粘贴这一行代码
(是同学找到解决原因的,不要脸的给写篇博客,可以为大家做个参考)
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '27.1.0'
}
}
}
}