compileSdkVersion=buildToolsVersion=targetSdkVersion minSdkVersion 并且保证依赖的所有库版本相同。当然你也可以哪个报错改哪个。统一之后就好了。
android { compileSdkVersion 26 buildToolsVersion '26.0.3' defaultConfig { minSdkVersion 16 targetSdkVersion 26 applicationId "com.bailu.hailaile" versionCode 52 versionName "2.12.17" multiDexEnabled true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi"// abiFilters "armeabi","armeabi-v7a"//,"x86" } javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } }复制代码