版本
cordova-plugin-crosswalk-webview ^2.4.0
cordova-android ^7.1.4
报错
:app:processArm64ReleaseManifest/Users/X/Documents/Code/app-order-tool/platforms/android/app/src/main/AndroidManifest.xml:26:5-74 Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/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="org.apache.cordova" to force usage (may lead to runtime failures)
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
:app:processArm64ReleaseManifest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processArm64ReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/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="org.apache.cordova" 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 46s
27 actionable tasks: 5 executed, 22 up-to-date
/Users/X/Documents/Code/app-order-tool/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/X/Documents/Code/app-order-tool/platforms/android/app/src/main/AndroidManifest.xml:26:5-74 Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/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="org.apache.cordova" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processArm64ReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/X/Documents/Code/app-order-tool/platforms/android/CordovaLib/build/intermediates/manifests/full/release/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="org.apache.cordova" 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 46s
解决
修改platforms/android/cordova-plugin-crosswalk-webview/XXX-xwarlk.gradle
// 原来的
def DEFAULT_MIN_SDK_VERSION = 14
// 修改后
def DEFAULT_MIN_SDK_VERSION = 19
网友评论