0.简述
1.报错信息
2.问题原因
3.解决方案
简述:
今天用到flutter的一个第三方webview框架,但是无法正常编译,编译了两次都失败了,
报错信息:
uses sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library [:flutter_inappwebview] E:\workspace\Flutter\flutter_app\build\flutter_inappwebview\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 17,
or use tools:overrideLibrary="com.pichillilorenzo.flutter_inappwebview" 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 17 declared in library [:flutter_inappwebview] E:\workspace\Flutter\flutter_app\build\flutter_inappwebview\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 17,
or use tools:overrideLibrary="com.pichillilorenzo.flutter_inappwebview" to force usage (may lead to runtime failures)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8m 55s
Exception: Gradle task assembleDebug failed with exit code 1
问题原因:
minSdkVersion 版本过低导致的,因第三方库中使用到minSdkVersion 高版本才有的特性,导致低版本的无法识别和编译
解决方案