Android Compilation Error For Webview+


#1

I am getting Android compailation error when i use (webview+). Same project is compailing with webview it is successfull as well as there no issue with IOS for (webview+).

COMPILER ERROR: 

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Script ‘/workspace/platforms/android/cordova-plugin-crosswalk-webview/app-xwalk.gradle’ line: 161

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not find method implementation() for arguments [org.xwalk:xwalk_core_library:23+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

CORDOVA LOG:

e[36m20180914T024420 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180914T024420 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
(node:27332) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20180914T024438 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180914T024438 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20180914T024438 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20180914T024438 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20180914T024438 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.ios@1.1.4
e[36m20180914T024438 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20180914T024440 [DEBUG] AndroidBuilder -e[39m [build] call cordova
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/default-java
Subproject Path: CordovaLib
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_52izebjw1ocxdvturf8ngys5k.run(/workspace/platforms/android/build.gradle:139)
org.xwalk:xwalk_core_library:23+

FAILURE: Build failed with an exception.

  • Where:
    Script ‘/workspace/platforms/android/cordova-plugin-crosswalk-webview/app-xwalk.gradle’ line: 161

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not find method implementation() for arguments [org.xwalk:xwalk_core_library:23+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.053 secs
e[91m20180914T024446 [ERROR] AndroidBuilder -e[39m { Error: /workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Script ‘/workspace/platforms/android/cordova-plugin-crosswalk-webview/app-xwalk.gradle’ line: 161

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not find method implementation() for arguments [org.xwalk:xwalk_core_library:23+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/workspace/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
    stderr:
    ‘\nFAILURE: Build failed with an exception.\n\n* Where:\nScript ‘/workspace/platforms/android/cordova-plugin-crosswalk-webview/app-xwalk.gradle’ line: 161\n\n* What went wrong:\nA problem occurred evaluating root project ‘android’.\n> Could not find method implementation() for arguments [org.xwalk:xwalk_core_library:23+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n’,
    stdout:
    ‘null\nThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.\n\tat build_52izebjw1ocxdvturf8ngys5k.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 3.053 secs\n’,
    code: 1 }