如何使用crosswalk插件构建Android版本6.4.0?

时间:2018-02-22 09:10:10

标签: android ionic2 crosswalk

我在安装crosswalk插件版本 2.4.0 后尝试构建Android版 6.4.0

首先我删除了android平台,然后使用以下命令重新安装它:

ionic cordova platform rm android 
ionic cordova platform add android@6.4.0

安装成功

此外,我使用以下命令行安装了crosswalk插件:

ionic cordova plugin add cordova-plugin-crosswalk-webview

此外,安装成功

现在我需要构建ionic2应用程序!

ionic cordova build android

但是建筑失败我收到了以下错误:

> cordova build android
    ANDROID_HOME=/Users/Khaled/Library/Android/sdk
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
    Subproject Path: CordovaLib
    Configuration 'compile' in project ':' is deprecated. Use 'implementation' instead.

    null
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_cobuqw2y8dlztu9fe2xpnvg13.run(/Users/Khaled/iCloud Drive (Archive)/Documents/Projects/ionic/rnb/rnb-receiver/platforms/android/build.gradle:143)
    org.xwalk:xwalk_core_library:23+


    FAILURE: Build failed with an exception.

    * What went wrong:

    A problem occurred configuring root project 'android'.
    > 
    All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

    * 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 1s
    (node:21899) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/Khaled/iCloud Drive (Archive)/Documents/Projects/ionic/rnb/rnb-receiver/platforms/android/gradlew: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring root project 'android'.
    > All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

    * 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 1s
    (node:21899) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

cordova版 8.0.0

发生此错误的原因是什么。什么是解决方案?

感谢。

0 个答案:

没有答案