flutter_smart_cropper uses-sdk:minSdkVersion 16 不能小于库中声明的版本 19
Posted
技术标签:
【中文标题】flutter_smart_cropper uses-sdk:minSdkVersion 16 不能小于库中声明的版本 19【英文标题】:flutter_smart_cropper uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library 【发布时间】: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 【参考方案1】:该软件包需要更高的 minSDK 版本。你需要在./android/app/build.gradle
升级它
你可以关注this question
【讨论】:
谢谢!我花了足够长的时间来找到正确的 build.gradle 文件以上是关于flutter_smart_cropper uses-sdk:minSdkVersion 16 不能小于库中声明的版本 19的主要内容,如果未能解决你的问题,请参考以下文章
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.
android:uses-permission 和 uses-permission 有啥区别?
#define USE_SQLDB (定义(USE_SQLITE) || 定义(USE_MYSQL))
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespac