Error when compile construct 2 project


#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


#17

Any solution to use Plugin Ads when compiling a Construct 2 project in Cocoon.io ?


#18

Hi,
sure you can use an older version for now.


#19

Hello, try to compile using the new plugin with rewarded notices and the Build Beta of coocon and at the moment of opening the application the screen goes black, it does not work either?


#20

Hi!
How did you get the build working using the new plugin? On my end it crashes.
Can you post the line of your config file where the ads plugin is added?

Thanks!


#21

Hi,

I’m kinda lost, is there any way at the moment to compile a Construct 2 project with Cocoon (canvas+, GPG & Ads plugins) targeting API level 26 ?


#22

You can by specifing an older plugin version of the ads plugin in your config.xml. Please see the post below.


#23

anyone fix this yet i have the same error


#24

Hi,
I figured out when you select “3.0.0-beta” the build works fine. However the game crashes on startup.
Hopefully @Blue_Sialia can update us about the progress.

Thank you!


closed #25

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