I get error after new update 2018-08-21


#1

after new update every i try compile my project i always get error ,i think the problem about the new plugin. So i try to change plugin and i still get error.can someone tell me after update what should i do? because im newbe, thanks @Blue_Sialia


#2

same problem here, my project compiled without problems, after the update without changing anything does not compile more


#3

Hello. First of all, thank you for releasing new Cocoon version.

I think you know about these, but I will point few things out because I have the same problem.

1.) The UI of project settings is not updated to reflect API change:

image

2.) I can’t install plugins from GitHub, throws this error:

[91m20180822T055004 [ERROR] AndroidBuilder -e[39m TypeError: Cannot read property 'fail' of undefined
    at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/cordova-lib/src/plugman/fetch.js:168:18
    at _fulfilled (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:787:54)
    at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:816:30
    at Promise.promise.promiseDispatch (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:749:13)
    at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:509:49
    at flush (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:108:17)
    at process._tickCallback (internal/process/next_tick.js:61:11)
e[91m20180822T055004 [ERROR] AndroidBuilder -e[39m BuilderError {
  message: 'Cannot read property \'fail\' of undefined',
  msgPublic: 'Cannot read property \'fail\' of undefined' }

3.) I can’t use the InApp purchase plugin:

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

#4

I get the following error when compiling with “latest”:

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/geofs-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.

#5

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/alwaysgreen-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[36m20180822T161252 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180822T161252 [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
(node:10823) [DEP0016] DeprecationWarning: ‘root’ is deprecated, use ‘global’
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@^1.0.0
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-share@*
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-googleplaygames@^1.0.0
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.installlocation.android@1.0.0
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.android@2.2.1
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin com.ludei.webviewplus.ios@1.1.4
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-vibration@*
e[36m20180822T161334 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@1
e[36m20180822T161336 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20180822T161337 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20180822T161337 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20180822T161337 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20180822T161337 [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_9gyflp7ijwj1ytfr0mxjqcq51.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/alwaysgreen-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.923 secs
e[91m20180822T161343 [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/alwaysgreen-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/alwaysgreen-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_9gyflp7ijwj1ytfr0mxjqcq51.run(/workspace/platforms/android/build.gradle:139)\norg.xwalk:xwalk_core_library:23+\n\nBUILD FAILED\n\nTotal time: 0.923 secs\n’,
    code: 1 }

#6

Cocoon version 3.0.0-beta
Compile Error while using Cocoon Android Architecture choose
=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=
COMPILER ERROR:

Cannot read property ‘fail’ of undefined

CORDOVA LOG:

e[36m20180823T064728 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180823T064728 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@7.1.1
e[36m20180823T064748 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180823T064748 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cordova-plugin-whitelist@*
e[36m20180823T064748 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20180823T064748 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin https://github.com/CocoonIO/cocoon-plugin-android-architecture.git
e[91m20180823T064748 [ERROR] AndroidBuilder -e[39m TypeError: Cannot read property ‘fail’ of undefined
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/cordova-lib/src/plugman/fetch.js:168:18
at _fulfilled (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:787:54)
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:816:30
at Promise.promise.promiseDispatch (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:749:13)
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:509:49
at flush (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:108:17)
at process._tickCallback (internal/process/next_tick.js:61:11)
e[91m20180823T064748 [ERROR] AndroidBuilder -e[39m BuilderError {
message: ‘Cannot read property ‘fail’ of undefined’,
msgPublic: ‘Cannot read property ‘fail’ of undefined’ }


#7

I also started having issues reported to me after the update, however I cannot compile a new version:

COMPILER ERROR:

Cannot read property ‘fail’ of undefined

CORDOVA LOG:

e[36m20180823T144047 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180823T144047 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@7.1.1
e[36m20180823T144107 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore plugins
e[36m20180823T144107 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-ads-android-admob@*
e[36m20180823T144107 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin cocoon-plugin-social-android-googleplaygames@*
e[36m20180823T144107 [DEBUG] AndroidBuilder -e[39m [prepare] adding plugin https://github.com/CocoonIO/cocoon-plugin-android-architecture.git
e[91m20180823T144107 [ERROR] AndroidBuilder -e[39m TypeError: Cannot read property ‘fail’ of undefined
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/cordova-lib/src/plugman/fetch.js:168:18
at _fulfilled (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:787:54)
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:816:30
at Promise.promise.promiseDispatch (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:749:13)
at /opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:509:49
at flush (/opt/cocoon_compiler/workspace/production/data/libs/cordova-lib@8.0.0/node_modules/q/q.js:108:17)
at process._tickCallback (internal/process/next_tick.js:61:11)
e[91m20180823T144107 [ERROR] AndroidBuilder -e[39m BuilderError {
message: ‘Cannot read property ‘fail’ of undefined’,
msgPublic: ‘Cannot read property ‘fail’ of undefined’ }


#8

You need to uninstall plugins loaded from GitHub for now.


#9

Alguma solução. Por favor.


#10

Cannot find module ‘lodash’ <Canvas+ 3.0.0>

Installed Plugin
"cocoon-plugin-ads-android-admob" spec="*"
"cocoon-plugin-inapps-android-googleplay" spec="*"
"cocoon-plugin-social-android-googleplaygames" spec="*"
"cordova-plugin-flurryanalytics" spec="*"
"cordova-plugin-dialogs" spec="*"

-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-
CORDOVA LOG:

e[36m20180825T022611 [DEBUG] AndroidBuilder -e[39m [prepare] cordova restore platforms
e[36m20180825T022611 [DEBUG] AndroidBuilder -e[39m [prepare] adding engine android@7.1.1
e[91m20180825T022653 [ERROR] AndroidBuilder -e[39m { Error: Cannot find module ‘lodash’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/workspace/plugins/cordova-plugin-cocoapod-support/scripts/podify.js:3:9)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3) code: ‘MODULE_NOT_FOUND’ }
e[36m20180825T022653 [DEBUG] AndroidBuilder -e[39m Cannot find module ‘lodash’


#11

hi.

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

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