Compiling error after change Cocoon version to 3


#1

Hello ,
I changed Cocoon version to 3 beta what makes compilation failure.
I got error message:

COMPILER ERROR: 

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:13: error: package com.android.vending.billing does not exist
import com.android.vending.billing.*;
^
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:51: error: cannot find symbol
    private IInAppBillingService mService;
            ^
  symbol:   class IInAppBillingService
  location: class GooglePlayInAppService
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:66: error: package IInAppBillingService does not exist
            mService = IInAppBillingService.Stub.asInterface(service);
                                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 13s

CORDOVA LOG: 

e[36m20181017T070100 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20181017T070101 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@7.1.1
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@*
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-facebook@*
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@*
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@2.0.0
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@3.0.0
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@2.0.0
e[36m20181017T070132 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181017T070134 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20181017T070134 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20181017T070135 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20181017T070135 [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
studio
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
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_5apstqlbihpzwxc2yf6men4gk.run(/workspace/platforms/android/app/build.gradle:144)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseRenderscript
:CordovaLib:checkReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processReleaseManifest
:CordovaLib:javaPreCompileRelease
:CordovaLib:processReleaseJavaRes NO-SOURCE
:app:preBuild UP-TO-DATE
:app:preReleaseBuild
:app:compileReleaseAidl
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:CordovaLib:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript
:app:checkReleaseManifest
:app:generateReleaseBuildConfig
:app:prepareLintJar
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests
:app:processReleaseManifest
:app:splitsDiscoveryTaskRelease
:app:processReleaseResources
:app:generateReleaseSources
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:13: error: package com.android.vending.billing does not exist
import com.android.vending.billing.*;
^
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:51: error: cannot find symbol
    private IInAppBillingService mService;
            ^
  symbol:   class IInAppBillingService
  location: class GooglePlayInAppService
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:66: error: package IInAppBillingService does not exist
            mService = IInAppBillingService.Stub.asInterface(service);
                                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 13s
27 actionable tasks: 27 executed
e[91m20181017T070151 [ERROR] AndroidBuilder -e[39m { Error: /workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:13: error: package com.android.vending.billing does not exist
import com.android.vending.billing.*;
^
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:51: error: cannot find symbol
    private IInAppBillingService mService;
            ^
  symbol:   class IInAppBillingService
  location: class GooglePlayInAppService
/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:66: error: package IInAppBillingService does not exist
            mService = IInAppBillingService.Stub.asInterface(service);
                                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 13s
    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:
   'Note: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:13: error: package com.android.vending.billing does not exist\nimport com.android.vending.billing.*;\n^\n/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:51: error: cannot find symbol\n    private IInAppBillingService mService;\n            ^\n  symbol:   class IInAppBillingService\n  location: class GooglePlayInAppService\n/workspace/platforms/android/app/src/main/java/com/ludei/inapps/googleplay/GooglePlayInAppService.java:66: error: package IInAppBillingService does not exist\n            mService = IInAppBillingService.Stub.asInterface(service);\n                                           ^\nNote: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\n3 errors\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task \':app:compileReleaseJavaWithJavac\'.\n> Compilation failed; see the compiler error output for details.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 13s\n',
  stdout:
   'publishNonDefault is deprecated and has no effect anymore. All variants are now published.\nConfiguration \'compile\' in project \':app\' is deprecated. Use \'implementation\' instead.\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_5apstqlbihpzwxc2yf6men4gk.run(/workspace/platforms/android/app/build.gradle:144)\n:CordovaLib:preBuild UP-TO-DATE\n:CordovaLib:preReleaseBuild UP-TO-DATE\n:CordovaLib:compileReleaseAidl\n:CordovaLib:compileReleaseRenderscript\n:CordovaLib:checkReleaseManifest\n:CordovaLib:generateReleaseBuildConfig\n:CordovaLib:prepareLintJar\n:CordovaLib:generateReleaseResValues\n:CordovaLib:generateReleaseResources\n:CordovaLib:packageReleaseResources\n:CordovaLib:platformAttrExtractor\n:CordovaLib:processReleaseManifest\n:CordovaLib:javaPreCompileRelease\n:CordovaLib:processReleaseJavaRes NO-SOURCE\n:app:preBuild UP-TO-DATE\n:app:preReleaseBuild\n:app:compileReleaseAidl\n:CordovaLib:processReleaseResources\n:CordovaLib:generateReleaseSources\n:CordovaLib:compileReleaseJavaWithJavac\n:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease\n:CordovaLib:packageReleaseRenderscript NO-SOURCE\n:app:compileReleaseRenderscript\n:app:checkReleaseManifest\n:app:generateReleaseBuildConfig\n:app:prepareLintJar\n:app:generateReleaseResValues\n:app:generateReleaseResources\n:app:mergeReleaseResources\n:app:createReleaseCompatibleScreenManifests\n:app:processReleaseManifest\n:app:splitsDiscoveryTaskRelease\n:app:processReleaseResources\n:app:generateReleaseSources\n:app:javaPreCompileRelease\n:app:compileReleaseJavaWithJavac FAILED\n27 actionable tasks: 27 executed\n',
  code: 1 }

#2

you try use version 2.1.0


#3

Want to use 3 because of API level 26


#4

You can use 2.1.0 and put this in config.xml to make Google Play Store accept your game:

<preference name="android-targetSdkVersion" value="26"/>

#5

For version 2.1.0 and set preference with skd version 26 also get compiling error:

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/factory-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[36m20181017T115333 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20181017T115333 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@*
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-facebook@*
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@*
e[36m20181017T115417 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181017T115419 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20181017T115419 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20181017T115421 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20181017T115421 [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_2h4ccwlv9hgcfvwswzdjy6k26.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/factory-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.099 secs
e[91m20181017T115426 [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/factory-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/factory-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_2h4ccwlv9hgcfvwswzdjy6k26.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 1.099 secs\n',
  code: 1 }

#6

In config.xml you should see your plugins listed as this:

<plugin name="cocoon-plugin-ads-android-admob" spec="*"/>
<plugin name="cocoon-plugin-inapps-android-googleplay" spec="*"/>
<plugin name="cocoon-plugin-social-android-facebook" spec="*"/>

Change * at the end to ^1.0.0, so it is like this:
spec="^1.0.0"


#7

I changed spec for every plugin but still get error:
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/factory-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[36m20181017T123433 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20181017T123433 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@^1.0.0
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@^1.0.0
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-facebook@^1.0.0
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@^1.0.0
e[36m20181017T123520 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181017T123522 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20181017T123522 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20181017T123522 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20181017T123522 [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
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_93wkc3syngxbyohyyquzm6pz0.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/factory-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: 0.956 secs
e[91m20181017T123527 [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/factory-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/factory-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_93wkc3syngxbyohyyquzm6pz0.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 0.956 secs\n',
  code: 1 }

#8

Try to change admob plugin ads version to “1.0.12”, i think it will work then


#9

changed, now:

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/factory-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[36m20181017T131528 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20181017T131528 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
e[36m20181017T131614 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20181017T131614 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@^1.0.12
e[36m20181017T131614 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@^1.0.0
e[36m20181017T131614 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-facebook@^1.0.0
e[36m20181017T131614 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20181017T131615 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m20181017T131615 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20181017T131615 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@^1.0.0
e[36m20181017T131615 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181017T131616 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20181017T131616 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20181017T131616 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20181017T131616 [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
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_ebgmirfrx3yz50xsl0535c741.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/factory-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: 0.971 secs
e[91m20181017T131621 [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/factory-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/factory-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_ebgmirfrx3yz50xsl0535c741.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 0.971 secs\n’,
    code: 1 }

#10

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.