【问题标题】:Webview flutter android compatibilit minSDK issueWebview flutter android兼容性最小SDK问题
【发布时间】:2021-10-05 07:57:49
【问题描述】:

我是 Flutter 的新手,我正在使用 flutter_html 包开发移动应用程序。应用程序遇到以下错误

"..\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)"

我尝试按照此文件\build\webview_flutter_android\intermediates\library_manifest\debug\AndroidManifest.xml 的建议将 minSdk 更改为 16。但仍然遇到错误。请帮忙。

【问题讨论】:

  • 尝试将项目minSDK版本设置为24

标签: flutter dart flutter-layout flutter-dependencies


【解决方案1】:

请在 app/build.gradle 文件中添加 minSdkVersion 21。效果很好。

【讨论】:

    猜你喜欢
    • 2012-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多