Error when compile construct 2 project


#1

COMPILER ERROR:

/workspace/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’.

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

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

CORDOVA LOG:

e[36m20180825T140222 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180825T140222 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
(node:19769) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20180825T140242 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180825T140242 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20180825T140242 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.canvasplus.android@2.6.0
e[36m20180825T140242 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.canvasplus.ios@2.6.0
e[36m20180825T140243 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20180825T140243 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20180825T140243 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.splash.android@1.1.0
e[36m20180825T140243 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m20180825T140245 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20180825T140247 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20180825T140247 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20180825T140247 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20180825T140247 [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
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_5q1acckjtfqej44ytnnplt67w.run(/workspace/platforms/android/build.gradle:138)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

FAILURE: Build failed with an exception.

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

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

  • 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.455 secs
e[91m20180825T140253 [ERROR] AndroidBuilder -e[39m { Error: /workspace/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’.

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

  • 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* What went wrong:\nA problem occurred configuring root project ‘android’.\n> Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.\n > Could not find com.google.android.gms:play-services-ads:15.0.1.\n Searched in the following locations:\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n Required by:\n project :\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:
    ‘The 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_5q1acckjtfqej44ytnnplt67w.run(/workspace/platforms/android/build.gradle:138)\nThe JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.\nIncremental java compilation is an incubating feature.\nThe TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.\n\nBUILD FAILED\n\nTotal time: 1.455 secs\n’,
    code: 1 }

#2

Same problem. How can fix this / help


#3

At the moment this is a bug with the compiler. You can try to build with Canvas+ instead of WebView+.
This worked for me at the moment.

Best,
Andy


#4

Same problem here.
Working project compiled apk cannot be installed,
One more warning shown that not seen before.

“Blocked by Play Protect”.
Play Protect doesn’t recognize this app’s developer. Apps from unknown developers can sometimes be unsafe."

=========

Even create a “blank Cocoon notifications demo” cannot be compiled in various webview engine

COMPILER ERROR:

Variable(s) missing: APP_ID, CLIENT_KEY

CORDOVA LOG:

e[36m20180826T094649 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180826T094649 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
(node:19725) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20180826T094715 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180826T094715 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-notifications-android-local@*
e[36m20180826T094715 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-notifications-android-parse@*
e[91m20180826T094715 [ERROR] AndroidBuilder -e[39m Error: Variable(s) missing: APP_ID, CLIENT_KEY
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@7.0.0/node_modules/cordova-lib/src/plugman/install.js:334:23
at _fulfilled (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@7.0.0/node_modules/q/q.js:787:54)
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@7.0.0/node_modules/q/q.js:816:30
at Promise.promise.promiseDispatch (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@7.0.0/node_modules/q/q.js:749:13)
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@7.0.0/node_modules/q/q.js:557:44
at flush (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@7.0.0/node_modules/q/q.js:108:17)
at process._tickCallback (internal/process/next_tick.js:61:11)
e[91m20180826T094715 [ERROR] AndroidBuilder -e[39m BuilderError {
message: ‘Variable(s) missing: APP_ID, CLIENT_KEY’,
msgPublic: ‘Variable(s) missing: APP_ID, CLIENT_KEY’ }


#5

I have this Problem with 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/striker-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[36m20180827T183348 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180827T183348 [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
Subproject Path: CordovaLib
(node:5332) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-inapps-android-googleplay@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-share@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-facebook@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-googleplaygames@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.ios@1.1.4
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-file@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-inappbrowser@*
e[36m20180827T183453 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-media@*
e[36m20180827T183454 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-vibration@*
e[36m20180827T183454 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@*
e[36m20180827T183455 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20180827T183456 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20180827T183456 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20180827T183457 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20180827T183457 [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_d6o5ayvemy8cwgtzv4pvqv7wh.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/striker-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.165 secs
e[91m20180827T183504 [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/striker-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/striker-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_d6o5ayvemy8cwgtzv4pvqv7wh.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 3.165 secs\n’,
    code: 1 }

#6

The same error here even with cocoon 2.2.0 version.

COMPILER ERROR:

/workspace/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’.

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

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

CORDOVA LOG:

e[36m20180828T085834 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180828T085834 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
(node:393) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20180828T085857 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180828T085857 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20180828T085857 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.canvasplus.android@2.6.0
e[36m20180828T085857 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.canvasplus.ios@2.6.0
e[36m20180828T085858 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20180828T085858 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20180828T085859 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.splash.android@1.1.0
e[36m20180828T085859 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@1
e[36m20180828T085859 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20180828T085902 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20180828T085902 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20180828T085902 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20180828T085902 [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
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_abe5m8wu12imfhkpihr50homj.run(/workspace/platforms/android/build.gradle:138)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

FAILURE: Build failed with an exception.

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

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

  • 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: 4.05 secs
e[91m20180828T085911 [ERROR] AndroidBuilder -e[39m { Error: /workspace/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’.

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

  • 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* What went wrong:\nA problem occurred configuring root project ‘android’.\n> Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.\n > Could not find com.google.android.gms:play-services-ads:15.0.1.\n Searched in the following locations:\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom\n file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar\n Required by:\n project :\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:
    ‘The 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_abe5m8wu12imfhkpihr50homj.run(/workspace/platforms/android/build.gradle:138)\nThe JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.\nIncremental java compilation is an incubating feature.\nThe TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.\n\nBUILD FAILED\n\nTotal time: 4.05 secs\n’,
    code: 1 }

When can we expect fix for this issue ?


#7

I am getting the same error when compiling with cocoon.io!

When i uninstall admob and remove admob or cocoon.ads plugin from construct 2 project, it works well.

When i try to add ads plugins, i have compiling error.

Can you help me? Is it cocoon.io problem or not?


#8

I’ve also noticed that it works fine without ads plugin (both cocoon ads and ultimate ads plugin)


#9

Hello there,

Any update on the fix to this problem?


#10

The Solution problems with cocoon: (Traslate it)

http://comunidadid.foroactivo.com/t1397-tutorial-construct-2-solucion-al-problema-de-compilacion-y-publicacion-de-cocoon-io#11177


#11

Hello.

Thi is Solution problems with cocoon: (Traslate it)

http://comunidadid.foroactivo.com/t1397-tutorial-construct-2-solucion-al-problema-de-compilacion-y-publicacion-de-cocoon-io#11177


#12

I am facing same issue. Anyone resolved it yet?


#13

Do we have a resolution date for this compiler bug?


#14

Please share if anyone got the solution.


#15

facing same issue with ads


#16

Hi!
The compiler seems to have problems fetching the dependencies of the Ads plugin.
@Blue_Sialia will update us as soon as they have fixed the problem, I’m sure.
Till that, either remove the ads plugin (from your cocoon project should be sufficient) or wait till the compiler is fixed.

This is all I can do and say at the moment, sorry about the inconveniences this is causing for you.
Hopefully this get fixed soon!

Best,
Andy