【问题标题】:flutter_smart_cropper uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in libraryflutter_smart_cropper uses-sdk:minSdkVersion 16 不能小于库中声明的版本 19
【发布时间】:2021-03-14 07:38:42
【问题描述】:

我正在尝试在flutter上安装flutter_smart_cropper package(在pubspec.yaml中添加flutter_smart_cropper: ^0.1.2,运行flutter pub get,运行flutter run),遇到以下错误:

/Users/[USERNAME]/Flutter-QuickStart/my_flutter_smart_cropper/android/app/src/debug/AndroidManifest.xml Error:
        uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:flutter_smart_cropper] /Users/[USERNAME]/Flutter-QuickStart/my_flutter_smart_cropper/build/flutter_smart_cropper/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
        Suggestion: use a compatible library with a minSdk of at most 16,
                or increase this project's minSdk version to at least 19,
                or use tools:overrideLibrary="com.xbo1.flutter_smart_cropper" to force usage (may lead to runtime failures)
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:processDebugManifest'.                  
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:flutter_smart_cropper] /Users/[USERNAME]/Flutter-QuickStart/my_flutter_smart_cropper/build/flutter_smart_cropper/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
        Suggestion: use a compatible library with a minSdk of at most 16,
                or increase this project's minSdk version to at least 19,
                or use tools:overrideLibrary="com.xbo1.flutter_smart_cropper" to force usage (may lead to runtime failures)

谁能解释一下将此项目的 minSDK 版本增加到至少 19 是什么意思,我该怎么做?

【问题讨论】:

  • ./android/app/build.gradle文件下的minSdkVersion 16增加到19

标签: flutter


【解决方案1】:

该软件包需要更高的 minSDK 版本。你需要在./android/app/build.gradle升级它

你可以关注this question

【讨论】:

  • 谢谢!我花了足够长的时间来找到正确的 build.gradle 文件
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-14
  • 2021-04-10
  • 2021-05-15
  • 1970-01-01
  • 2020-12-31
  • 1970-01-01
相关资源
最近更新 更多