Software Archive
Read-only legacy content
17060 Discussions

Build for android fail with no error message

dev_s_
Beginner
676 Views

Hi,

For some reason, probably a change i made cause my project build to fail for android\crosswalk.

The build log contains no error:

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • Building a Cordova 4.1.2 application.
  • The application name is "MenuWays"
  • The package name is "com.softbraintech.menuways"
  • Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
  • Plugin "org.apache.cordova.statusbar" (0.1.9) installed.
  • Plugin "org.apache.cordova.geolocation" (0.3.11) installed.
  • Plugin "org.apache.cordova.network-information" (0.2.14) installed.
  • Plugin "uk.co.whiteoctober.cordova.appversion" (0.1.7) installed.
  • Plugin "org.apache.cordova.dialogs" (0.2.11) installed.
  • Plugin "org.apache.cordova.globalization" (0.2.7) installed.
  • Plugin "org.pushandplay.cordova.apprate" (1.1.7) installed.
  • Plugin "de.appplant.cordova.plugin.badge" (0.7.0) installed.
  • Plugin "org.apache.cordova.inappbrowser" (0.5.4) installed.
  • Plugin "com.aquto.cordova.AppleAdvertising" (0.0.1) installed.
  • Plugin "nl.x-services.plugins.toast" (2.1.1) installed.
  • Plugin "de.appplant.cordova.plugin.email-composer" (0.8.3dev) installed.
  • Plugin "nl.x-services.plugins.socialsharing" (4.3.19) installed.
  • Plugin "com.phonegap.plugins.barcodescanner" (2.2.0) installed.
  • Plugin "org.apache.cordova.file" (1.3.2) installed.
  • Plugin "org.apache.cordova.device" (0.2.13) installed.
  • Plugin "org.apache.cordova.file-transfer" (0.4.8) installed.

 

Is there a way to see the log file\error message ? 

The build for iOS is ok.

We planned to upload to google play next week and we are unable to build for android anymore.

Thanks.

0 Kudos
8 Replies
Anusha_M_Intel1
Employee
676 Views
Hi, The link to the build log can be found right under the the build failed message. It looks like one of your plugins is failing to install. Could you remove all plugins other than the ones listed as installed in your build log? See if it builds after that and this will help narrow down the problem.
0 Kudos
dev_s_
Beginner
676 Views

There is no link to the build log, I copied the entire screen.

I will try the plugins option you suggested

Thanks

0 Kudos
dev_s_
Beginner
676 Views

I found that the below two plugin are causing the build to fail (they worked well last time i build for android)

https://github.com/phonegap-build/PushPlugin.git

 

https://github.com/danwilson/google-analytics-plugin.git

 

0 Kudos
John_H_Intel2
Employee
676 Views

Did you check to see if the author of the plugin pushed changes to each of the plugins?

If the author pushed changes that we do not yet support, you will need to specify the version of the plugin you had previously used. 

0 Kudos
Anusha_M_Intel1
Employee
676 Views

Hi Dev,

John is right. The push plugin has been updated 5 days ago and the google analytics sometime in July. You should use the older version of the plugin that was previously working for you. 

0 Kudos
Jerez_B_
Beginner
676 Views

I just confirmed that PushPlugin had a new release recently, https://github.com/phonegap-build/PushPlugin.git released an update to 2.5.0 from 2.4.0 that caused the build to fail. So for now, use version 2.4.0 - https://github.com/phonegap-build/PushPlugin.git#2.4.0

0 Kudos
John_H_Intel2
Employee
676 Views

There are 2 ways to avoid this issue in the future:

1. Download the plugin locally and include it that way.

2. Determine which version of the plugin you are using and happy with and re-add the plugin specifying the version when its added so that version will always be used even if the author updates it.

0 Kudos
dev_s_
Beginner
676 Views

Thanks for the help.

Anyway it will be better if the build screen will have the link for the build log in such a case (most of the times it has - not in this case)

0 Kudos
Reply