美文网首页
cordova-plugin-crosswalk-webview

cordova-plugin-crosswalk-webview

作者: pumpkin1024 | 来源:发表于2021-02-02 17:44 被阅读0次

    版本

    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
    

    相关文章

      网友评论

          本文标题:cordova-plugin-crosswalk-webview

          本文链接:https://www.haomeiwen.com/subject/vnhjtltx.html