Webview flutter android compatibilit minSDK issue

Issue

I’m new in Flutter, I am developing a mobile application using flutter_html package. The application encountering an error below

"..\build\webview_flutter_android\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="io.flutter.plugins.webviewflutter" to force usage (may lead to runtime failures)"

I tried to change the minSdk to 16 as suggested to this file\build\webview_flutter_android\intermediates\library_manifest\debug\AndroidManifest.xml. But still encountering an error. Any help please.

Solution

Please add minSdkVersion 21 in app/build.gradle file. it works good.

Answered By – Urvashi

Answer Checked By – Willingham (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.