Software Archive
Read-only legacy content
17061 Discussions

Android build fails

FP
Beginner
697 Views
Android builds are failing at the moment on 1878 with following error: An error occurred while building the application. Verify your build assets are correct and try again. I checked all assets seem ok. I built same app earlier today with no issues... Here are the last few lines of the log - any idea what's going on? BUILD SUCCESSFUL Total time: 16 seconds Built the following apk(s): .../hw/platforms/android/ant-build/CordovaApp-release-unsigned.apk Command finished with error code 0: .../hw/platforms/android/cordova/build --release Thanks FP
0 Kudos
7 Replies
FP
Beginner
697 Views

 This issue is now resolved, must have been a server issue

0 Kudos
Yves_v_
Beginner
697 Views

Mine is still failing.

I only changed the Domain list permissions, by adding tel:* and checking "Allow external applications to launch from this domain"

And it fails with the following error log:

Installing "org.apache.cordova.network-information" for android
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.battery-status" for android
Installing "org.apache.cordova.file" for android
Installing "org.apache.cordova.inappbrowser" for android
Installing "org.apache.cordova.dialogs" for android
Installing "org.apache.cordova.splashscreen" for android
Installing "nl.x-services.plugins.socialsharing" for android
Installing "de.appplant.cordova.plugin.email-composer" for android
Installing "cordova-plugin-statusbar" for android
Generating config.xml from defaults for platform "android"
Calling plugman.prepare for platform "android"
Preparing android project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.network-information',
  'org.apache.cordova.device',
  'org.apache.cordova.battery-status',
  'org.apache.cordova.file',
  'org.apache.cordova.inappbrowser',
  'org.apache.cordova.dialogs',
  'org.apache.cordova.splashscreen',
  'nl.x-services.plugins.socialsharing',
  'de.appplant.cordova.plugin.email-composer',
  'cordova-plugin-statusbar' ]
Writing out cordova_plugins.js...
undefined
0 Kudos
Swati_S_Intel1
Employee
697 Views

I don't see the complete error log. Please attach the error log.

0 Kudos
John_H_Intel2
Employee
697 Views

I just tried a build on both 1826 and 1878, making the changes you said you did, both builds completed fine. Try removing the 3rd party plugins and see if the builds completes.

0 Kudos
Eric_H_Intel
Employee
696 Views

This appears to be a bug in the XDK and I am investigating the issue.   This appear to be caused by an invalid access tag.

To get around this issue:
- Go to project build settings
- Select "Allow external applications to launch from this domain."
- Push your project changes up. 
- Deselect the option if you are not using it.

Let me know if that solves your problem.

Eric

 

 

0 Kudos
Thomas_R_1
Beginner
696 Views

Hi Eric,
I have the exact same issue. I tried your fix but it did not the trick.

It built fine the whole day then it stopped. I can launch the app from Local Apps in Intel App Preview. But it doesn't build when I click the Build tab then click Cordova Android.
I'm using Cordova 3.5, but I also tried 4.1.2. Not better, same error.
I also tried to build Unsigned.
Building for iOS is fine, though.

I'm not using any 3rd party plugin.
I'm using these cordova plugins : Contacts, Device, SplashScreen.
All is OK on the emulator.
All is OK on Local Apps in Intel App Preview.
Not OK in Server Apps in Intel App Preview

My whole build log is :

 
 
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 "MyAppName"
  • The package name is "com.mycompany.myappname"
  • Preference android-signed set to true. Application will be signed.
0 Kudos
John_H_Intel2
Employee
696 Views

There was an issue which has been fixed. Sorry for the delay in getting this resolved.

0 Kudos
Reply