当我构建Android应用程序时,出现以下错误:
错误:项目':app'所需的SDK Build Tools版本(24.0.3)过低。最低要求为25.0.0
我查看了其他帖子,它们的解决方案对我没有起作用。我尝试编辑build.gradle并更改buildToolsVersion。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '24.0.3'
defaultConfig {
applicationId "com.appsofdave.karen"
minSdkVersion 15
targetSdkVersion 23
versionCode 10
versionName "1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
res.srcDirs = ['src/main/res', 'src/main/res/values-v21']
java.srcDirs = ['src/main/java', 'src/main/aidl/com/android/vending/billing']
}
}
repositories {
mavenCentral() // jcenter() works as well because it pulls from Maven Central
}
}
compileSdkVersion
、buildToolsVersion
和targetSdkVersion
旁边的数字需要以相同的数字开头... - Dev-iL