Android dependency 'com.android.support:appcompat-v7' has different version for the compile (27.0.0) and runtime (28.0.0) classpath. You should manually set the same version via DependencyResolution
解决办法:在项目app的build.gradle中的android里面加上,用同一个版本
configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { if (!requested.name.startsWith("multidex")) { details.useVersion '27.0.0' } } } }