Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android APK Build error

Hi, I'm getting an APK build error when trying to build a release APK.
A non release builds fine, just release fails.....

Can you take a look please?

Build error

Most likely build error cause:

Warning: RequireJS failed.
Aborted due to warnings.

Project Name: ScheduleNow.
Project shared with Support.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Android APK Build error

Hello Andy,

Please remove the symbol "comma" from the line 231 in the file signature_pad.js
Image

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android APK Build error

Thanks Serhii,

I've made that change, unfortunately, that hasn't fixed the build issue.

I'm still getting a fail.

---------------------------------------

Build error

Most likely build error cause:

Warning: RequireJS failed.
Aborted due to warnings.

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

Android APK Build error

Hello,

Please check your code again, now it shows this:
code [31m>> [39mError: Cannot parse file: [31m
[39m/.../android/app/www/bui [31m
[39mld/www/libs/SignaturePad/signature_pad.js for comments. Skipping it. Error [31m
[39mis: [31m
[39mError: Line 446: Unexpected token )
[33mWarning: RequireJS failed. Use --force to continue. [39m

[31mAborted due to warnings. [39m/code

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android APK Build error

Hi Galyna,

many thanks for this, the code was imported and did seem to contain a lot of extra commas that were not required.

In the end, I use a great javascript validator to find all the issues:

https://www.piliapp.com/javascript-va...

Very useful !

But......I still get the following build error....

Build error

Most likely build error cause:

Warning: RequireJS failed.
Aborted due to warnings.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Android APK Build error

The last build was successful. Please let us know if we can be of further assistance.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android APK Build error

No, the last build was a debug, that works. It's releases that don't build

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android APK Build error

Just tried another Release build, and failed again.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Android APK Build error

We use forced by yui-compressor plugin minification for JS and CSS (Release builds). You need to use correct JS and CSS syntax for yui-compressor plugin. You can check compressing on http://refresh-sf.com/yui/ or any other external yui-compressor resources.
So the build log shows us an error: pre [39mError: Cannot uglify2 file: [31m
[39m/srv/tiggzi/jenkins/workspace/477848-android/54874/477848/android/app/www/bui [31m
[39mld/www/libs/SignaturePad/signature_pad.js. Skipping it. Error is: [31m
[39mUnexpected token operator «=», expected punc «,» (line: 92, col: 64, pos: [31m/pre

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android APK Build error

Thanks for this, useful info.

I'm now able to hopefully prepare the code before attempting a build.

Return to “Issues”