答案 0 :(得分:0)
问题在于build.gradle文件中的Compile版本。 看来,你的编译版本是26。 请将您的编译版本更改为25并同步gradle。
compileSdkVersion 25
buildToolsVersion "25.0.3"
答案 1 :(得分:0)
在查看上一个问题之后,您可能希望确保您的compileSdkVersion全面匹配,如果您想在25中构建但是您在23岁。
This support library should not use a different version Error in build.gradle
您可以通过>>确认版本在Android studio中创建新项目>>按Ctrl + Shift + Alt + S>>进入“项目”部分>>你可以看到实际的gradle版本和android pluging版本。将其复制到您的项目中。
答案 2 :(得分:0)
请将您的编译版本设置为25
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.user.xxxxx"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
}