【发布时间】: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