AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 34 forks source link

v2.0.0 still requires minSdkVersion 24 #55

Open ShahoodulHassan opened 6 months ago

ShahoodulHassan commented 6 months ago

Hi,

My flutter app supports Android SDK versions 21 and above and so I selected light_compressor v 2.0.0 because as per documentation, it requires minSdkVersion 21. However, I'm still getting the following error:

C:\AndroidStudioFlutterProjects\HECentral\android\app\src\debug\AndroidManifest.xml Error: uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [:light_compressor] C:\AndroidStudioFlutterProjects\HECentral\build\light_compressor\intermediates\merged_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 21 Suggestion: use a compatible library with a minSdk of at most 21, or increase this project's minSdk version to at least 24, or use tools:overrideLibrary="com.abedelazizshe.light_compressor" to force usage (may lead to runtime failures)

I've added implementation 'com.github.AbedElazizShe:LightCompressor:1.2.2' in module level build file. In app level build file, I'm using ext.kotlin_version = '1.8.0'.

Please inform how I can use this package in a flutter app that supports SDK versions 21 and above.