我正在尝试更改android构建版本以在较低的android上运行apk并出现一些错误
我尝试安装构建工具,将buildToolsVersion更改为“ 24.2.1” 更改了minSDK版本,但没有任何反应
android {
compileSdkVersion 24
buildToolsVersion "24.2.1"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 14
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion = '24.0.0'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:24.2.1'
implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta1'
implementation 'android.arch.lifecycle:extensions:1.1.1'
testImplementation 'junit:junit:4.13-beta-3'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.android.support:support-v4:24.2.1'
implementation 'com.android.support:support-vector-drawable:24.2.1'
implementation 'com.android.support:cardview-v7:24.2.1'
implementation 'com.android.support:design:24.2.1'
implementation 'com.android.support:recyclerview-v7:24.2.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
implementation 'com.google.android.gms:play-services-location:16.0.0'
}
这是我的错误
WARNING: The specified Android SDK Build Tools version (24.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.4.0.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '24.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Remove Build Tools version and sync project
Affected Modules: app