1

I am trying to install flutter_smart_cropper package on flutter (adding flutter_smart_cropper: ^0.1.2 in pubspec.yaml, run flutter pub get, run flutter run), and met the following error:

/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)

Can someone explain what does it mean to increase this project's minSDK version to at least 19, and how do I do so?

neic
  • 105
  • 6

1 Answers1

4

The package requires higher minSDK version. You need to upgrade it in ./android/app/build.gradle

You can follow this question

MartinM
  • 301
  • 3
  • 9