![](/img/trans.png)
[英]Android studio: Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version L declared in library
[英]Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library
当我在这里实现文件选择器库时出现此错误是build.gradle
文件:
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.