Android Build Fails on Webview +


#1
  • Cocoon Version:
    Latest

  • Basic description of the problem:
    ANdroid build fails on Webview+ and on webview i get blue screen on few android devices but with canvas+ its good

  • Device info:
    Android

  • Expected result:
    Should work with webview+

  • Error log
    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/savethefarm-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[36m20181028T205734 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20181028T205734 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
(node:27351) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@*
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-share@*
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-googleplaygames@*
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.ios@1.1.4
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@1
e[36m20181028T205844 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin enhance-cordova-connector@*
e[36m20181028T205847 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181028T205850 [DEBUG] AndroidBuilder -e[39m [build] call cordova
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
Starting a Gradle Daemon, 9 busy and 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
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_77s77yvxhp6e1quvwf2ipr5rr.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/savethefarm-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: 13.692 secs
e[91m20181028T205912 [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/savethefarm-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/savethefarm-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:
    ‘Starting a Gradle Daemon, 9 busy and 1 incompatible and 2 stopped Daemons could not be reused, use --status for details\nnull\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_77s77yvxhp6e1quvwf2ipr5rr.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 13.692 secs\n’,
    code: 1 }

  • Webview engine(s):
    Webview +

  • Used plugins (if relevant):

  1. Cocoon Google IAP
  2. Cocoon Google play service
  3. Cocoon Share
  4. Enhance connector

#2

Aye… FWIW, I see about the same with those parameters. My project is C2 and unfortunately do not recall my last successful Webview+ compilation.


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/ptkeys100-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[36m20181029T001047 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20181029T001047 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
(node:456) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20181029T001127 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20181029T001127 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@1.0.3
e[36m20181029T001127 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-ios-appstore@*
e[36m20181029T001127 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.ios@1.1.1
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.ios@1.0.1
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.ios@1.0.5
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.ios@1.1.4
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-nativestorage@*
e[36m20181029T001128 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@1
e[36m20181029T001129 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181029T001131 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20181029T001131 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20181029T001131 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20181029T001131 [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_3jjn9uy6rctoes7vbinjiklmu.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/ptkeys100-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: 1.108 secs
e[91m20181029T001137 [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/ptkeys100-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/ptkeys100-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_3jjn9uy6rctoes7vbinjiklmu.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 1.108 secs\n’,
    code: 1 }