Java 清单合并失败:使用sdk:MinSDK版本16不能小于库中声明的版本19
我在实现文件选择器库时出现此错误 以下是build.gradle文件:Java 清单合并失败:使用sdk:MinSDK版本16不能小于库中声明的版本19,java,android,file,Java,Android,File,我在实现文件选择器库时出现此错误 以下是build.gradle文件: apply plugin: 'com.android.application' android { compileSdkVersion 30 buildToolsVersion "30.0.2" defaultConfig { applicationId "com.example.myapplicatio
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'ir.samanjafari.easycountdowntimer:easycountdowntimer:2.5.0'
//implementation 'com.droidninja:filepicker:2.2.5'
// implementation 'com.github.jaiselrahman:FilePicker:1.3.2'
implementation 'com.nbsp:materialfilepicker:1.9.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
这是库implementation'com.nbsp:materialfilepicker:1.9.1'
如何修复它?您使用的库至少支持SDK版本19,而您的应用程序至少支持16。这就是它失败的原因 您可以在此行中将minSdk版本更新为19:
minSdkVersion 19
或者,您可以使用另一个具有相同特性的库,该库至少支持16个SDK