[Build Error #5] Build failed. Check the console window for errors.

Over the last couple of days my Android build has been receiving this error. I have tried earlier versions of my game which have built successfully in the past, but this error still comes up.

The examples build fine however, also if i cut down the files in my project it may build succesfully occasionally.

The same version of my game which built succesfully just a few days ago, now only returns the error. nothing is shown on the console window

Im using build 484
windows 7 64bit

Problem started on around the 24th of April [import]uid: 24981 topic_id: 9335 reply_id: 309335[/import]

So iv done some more testing and it appears that if there are more then 60 lua files it wont build succesfully.

I have used various combinations of lua files and using below 60 will always build succesfully, using more will cause a Build error #5.
The amount of other assests dosnt seem to matter, just the amount of lua files seems to cause a problem.

As said in my previous post this was not a problem a few days ago.

Please fix this

[import]uid: 24981 topic_id: 9335 reply_id: 34113[/import]

Yea i myself was having that issue a few days ago, but i cant remember how i resolved it, i thought that maybe it was just server errors that corona was having at the time… [import]uid: 19620 topic_id: 9335 reply_id: 34118[/import]

Am having this problem too. Glad to found this thread, seems like I’m not the only one who experience this problem.

Please fix this ansca team. [import]uid: 12979 topic_id: 9335 reply_id: 34283[/import]

hey guys, have you tried changing your build package name? try making it something totally different, seems like that may have been what fixed it for me [import]uid: 19620 topic_id: 9335 reply_id: 34284[/import]

So my builds started to work again last night.

I decided to rebuild the same file again and this time i was prompted for my password and to change the time on my system. I did both and its been building succesfully again.
[import]uid: 24981 topic_id: 9335 reply_id: 34358[/import]

Not sure what exactly about the file was causing the issue, but I was trying out Physics Editor with one of the modules in my program and the file it created is what was causing this error for me. I removed the file from the project and my program built. I’m not necessarily blaming Physics Editor, because I haven’t found out what part of the file was causing the issue and wasn’t even using those physics objects in my program(It’s really a mess right now). Just wanted to let people know in case it helps. [import]uid: 44607 topic_id: 9335 reply_id: 34654[/import]

Hi guys. Problem still exists for me. Bad, very bad… I would like to say, the same project is built successfully on my office MacBook Pro and fails on my home PC. The reinstallations of JDK (JDK 6 Update 25 - 32bit) and Corona (484) cannot resolve the problem.

Ansca team please fix it :^)

But any way, I’m going to find the bad code which causes this problem… [import]uid: 56887 topic_id: 9335 reply_id: 35917[/import]

I found where the problem was. It’s a funny bug :^)

When you run simulator Corona doesn’t check or translate all lua files you have in your project directory. It only translates files which are referenced (required) from another files (e.g. from main.lua) and ignores another which can contain lua syntax errors. So you cannot see errors in not referenced files.

But when you build, Corona translates all lua files and if one of them contains lua syntax error you will receive this informative error :^) My error was (c# habit))):[lua]if (v < t)

end[/lua]
Try my test:

main.lua:[lua]print “main.lua”[/lua]

test.lua:[lua]print “test.lua”
–print bad string without quots[/lua]
Just decomment the second row in test.lua to get the Build Error #5

NOTE: You can use ‘require’ operator for unused lua files to find errors quickly :^)

Best Regards,
Maxim [import]uid: 56887 topic_id: 9335 reply_id: 35930[/import]

thank you Maxim! i had a stub of a file that i was using while testing lua syntax highlighting in jEdit - deleted it and building works again!

(serves me right for not keeping my directory clean) [import]uid: 24493 topic_id: 9335 reply_id: 39040[/import]

had the same error. discovered it was in my build.settings that was pre-configured by CPM

build =
{
custom = “1.1”,
} [import]uid: 67800 topic_id: 9335 reply_id: 87438[/import]

I have the same issue, i can’t even build the example projects!, i am having a hard time with this thing, and even when i get it to build (on my laptop sometimes builds) and then install it on my LG optimus black p970 (it has an Arm Cortex A8 cpu, i checked it) it doesn´t run, it says that it has closed unexpectedly… any help here? [import]uid: 141404 topic_id: 9335 reply_id: 109575[/import]