Not able to build on android with absolutely same configurations as before


#1
  • Cocoon Version:
    What Cocoon version are you using to compile (i.e. 1.0.0)?
    Latest

  • Basic description of the problem:

  • Yesterday I was able to build on android platform. I’ve do ne this like 25+ times but today I can’t build, the complier always throws an error. I have absolutely the same configurations yesterday abd today.*

  • Device info:
    *Android 5.1.1"

  • Steps will reproduce the problem:

  1. Configure everything in the UI.
  2. Update the source code by uploading a zip file.
  3. Build for android.
  • Expected result:
    Build should not fail, because I’ve already build 25+ times with the same configurations.

  • Error log
    COMPILER ERROR:

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/workspace/platforms/android/build.gradle’ line: 254

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

Could not get unknown property ‘ANDROID_SUPPORT_V4_VERSION’ for 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[36m[2018-08-10T12:40:08.042] [DEBUG] AndroidBuilder - e[39m[prepare] cordova restore platforms
e[36m[2018-08-10T12:40:08.055] [DEBUG] AndroidBuilder - e[39m[prepare] adding engine android@6.2.3
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
e[36m[2018-08-10T12:40:14.803] [DEBUG] AndroidBuilder - e[39m[prepare] cordova restore plugins
e[36m[2018-08-10T12:40:14.805] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin com.ludei.defaultres.android@1.0.1
e[36m[2018-08-10T12:40:14.850] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin com.ludei.usericon.android@1.0.1
e[36m[2018-08-10T12:40:14.894] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin com.ludei.usersplash.android@1.0.2
e[36m[2018-08-10T12:40:14.943] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin cordova-launch-review@*
e[36m[2018-08-10T12:40:14.980] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin cordova-plugin-admob-free@0.12.1
e[36m[2018-08-10T12:40:15.028] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin cordova-plugin-file@4.3.3
e[36m[2018-08-10T12:40:15.073] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin cordova-plugin-inappbrowser@*
e[36m[2018-08-10T12:40:15.123] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin cordova-plugin-network-information@*
e[36m[2018-08-10T12:40:15.158] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin cordova-plugin-whitelist@1
e[36m[2018-08-10T12:40:15.205] [DEBUG] AndroidBuilder - e[39m[prepare] adding plugin https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/package.json

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/plugin.xml

skipping existing file: screenshot-android-share.png
skipping existing file: screenshot-ios6-share.png
skipping existing file: screenshot-ios7-ipad-share.png
skipping existing file: screenshot-ios7-share.png
skipping existing file: screenshot-wp8-share.jpg
skipping existing file: screenshots-ios7-shareconfig.png
skipping existing file: FileProvider.java
skipping existing file: ShareChooserPendingIntent.java
skipping existing file: SocialSharing.java
skipping existing file: sharing_paths.xml
skipping existing file: NSString+SSURLEncoding.h
skipping existing file: NSString+SSURLEncoding.m
skipping existing file: SocialSharing.h
skipping existing file: SocialSharing.m
skipping existing file: SocialSharingProxy.js
skipping existing file: Newtonsoft.Json.dll
skipping existing file: SocialSharing.cs
skipping existing file: plugin.xml
skipping existing file: test.js
skipping existing file: SocialSharing.js
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/package.json

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/plugin.xml

skipping existing file: screenshot-android-share.png
skipping existing file: screenshot-ios6-share.png
skipping existing file: screenshot-ios7-ipad-share.png
skipping existing file: screenshot-ios7-share.png
skipping existing file: screenshot-wp8-share.jpg
skipping existing file: screenshots-ios7-shareconfig.png
skipping existing file: FileProvider.java
skipping existing file: ShareChooserPendingIntent.java
skipping existing file: SocialSharing.java
skipping existing file: sharing_paths.xml
skipping existing file: NSString+SSURLEncoding.h
skipping existing file: NSString+SSURLEncoding.m
skipping existing file: SocialSharing.h
skipping existing file: SocialSharing.m
skipping existing file: SocialSharingProxy.js
skipping existing file: Newtonsoft.Json.dll
skipping existing file: SocialSharing.cs
skipping existing file: plugin.xml
skipping existing file: test.js
skipping existing file: SocialSharing.js
e[36m[2018-08-10T12:40:17.485] [DEBUG] AndroidBuilder - e[39m[build]
Warning: File /.android/repositories.cfg could not be loaded.
yes: standard output: Broken pipe
yes: write error
e[36m[2018-08-10T12:40:18.989] [DEBUG] AndroidBuilder - e[39m[build] create certs folder
e[36m[2018-08-10T12:40:18.989] [DEBUG] AndroidBuilder - e[39m[build] keystore
e[36m[2018-08-10T12:40:19.151] [DEBUG] AndroidBuilder - e[39m[build] create release build.json
e[36m[2018-08-10T12:40:19.152] [DEBUG] AndroidBuilder - e[39m[build] call cordova
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/package.json

cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/issue_template.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-x-socialsharing/plugin.xml

skipping existing file: screenshot-android-share.png
skipping existing file: screenshot-ios6-share.png
skipping existing file: screenshot-ios7-ipad-share.png
skipping existing file: screenshot-ios7-share.png
skipping existing file: screenshot-wp8-share.jpg
skipping existing file: screenshots-ios7-shareconfig.png
skipping existing file: FileProvider.java
skipping existing file: ShareChooserPendingIntent.java
skipping existing file: SocialSharing.java
skipping existing file: sharing_paths.xml
skipping existing file: NSString+SSURLEncoding.h
skipping existing file: NSString+SSURLEncoding.m
skipping existing file: SocialSharing.h
skipping existing file: SocialSharing.m
skipping existing file: SocialSharingProxy.js
skipping existing file: Newtonsoft.Json.dll
skipping existing file: SocialSharing.cs
skipping existing file: plugin.xml
skipping existing file: test.js
skipping existing file: SocialSharing.js
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, 19 stopped Daemons could not be reused, use --status for details
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_daatgwmvud7mjgn3k9z3la9sq.run(/workspace/platforms/android/build.gradle:137)

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/workspace/platforms/android/build.gradle’ line: 254

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

Could not get unknown property ‘ANDROID_SUPPORT_V4_VERSION’ for 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: 5.73 secs

  • Other information:
    I think there’s a problem on the compiler itself because I’ve already built on android a lot of times with the same configurations. It only happenned today. Are you guys a able to build on android today? Please help.

  • Webview engine(s)
    Webview


#2

I now know what’s causing the problem. It is the socialsharing plugin that I have installed from a git URL. It was working before but now it causes build errors. Unfortunately, that plugin is so important for my app. :disappointed_relieved:


#3

I’ve solved the problem by uninstalling the plugin and then installing it again directly from the “Search” section of the “Plugins” tab.


#4

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