Stuck with Build Failed Error code: 5

Hi

For the first time ever I wanted to try and build my project for Android. I think I followed all the guides.

I went though this:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html

and this:

https://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Made additional icons and think I followed the guides line by line.

My project still builds well and fine for iOS, but I just can’t get it to build for Android and I’m really, really stuck with an error code:5 when trying to build. 

I also tried to download the latest Corona build 2015.2771 (2015.11.13)

What to do? Where to look? How to debug an error like that? It doesn’t say anything but Build Failed Error code: 5

Thanks

Daniel

I see that I copied the same link in twice. I did mean to show I read the Android guide as well.

https://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Thanks 

Daniel

I guess there was more info to get from the Corona Simulator Console. I’ve always used an IDE, so the Corona Simulator Console never showed before.

nov. 14 01:40:53.14 1 ERROR: An error occurred during build. The server returned the following message:


A device build error occurred on the server.

BuildID: 5646831406e17
Error: Get plugin failed.
Publisher: com.coronalabs
Plugin: plugin.openudid

nov. 14 01:40:53.15 2 Android build failed (5)

nov. 14 01:40:53.38 3 ERROR: Build Failed: Error code: 5

 

So… I guess there is nothing I can do other then write support.

First, you have to give people time to reply. You posted your first post at 7:19, and your “I guess all I can do is write support”  at 7:44. That’s 25 minutes. Our community is great, but expecting a reply in 25 minutes is unrealistic.

Now, build error 5 is generally due to an unknown network error, but in this case, it failed to download the plugin OpenUDID. You are trying to build for Android. This plugin is for iOS only (see: https://docs.coronalabs.com/plugin/openudid/))

To fix this in your build.settings change this code:
 

 ["plugin.openudid"] = { publisherId = "com.coronalabs" },

to

 ["plugin.openudid"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, },

Note all the commas at the end of the line.

Rob

Hi Rob

Thank you for your answer. Well, I wrote support because I didn’t know you guys would answer the forum,  when I realized I got an error from the backend, so I though I would report it. All within 25 minutes. just see my other posts above.

May I suggest you put that sample code on the api documentation page?

https://docs.coronalabs.com/plugin/openudid/index.html

I did not notice the small “platform: iOS” notice in the top, but would have noticed the sample.

Have a great weekend.

Daniel

There is a  report problems link at the bottom of the page where you can report documentation issues. I have done this for you.

My point is asking in the forums is the first place to ask questions. You generally will get a faster turn around on here. This is also a question that the community has the full ability to answer. I just happened to be the first one to get here.

Rob

I see that I copied the same link in twice. I did mean to show I read the Android guide as well.

https://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Thanks 

Daniel

I guess there was more info to get from the Corona Simulator Console. I’ve always used an IDE, so the Corona Simulator Console never showed before.

nov. 14 01:40:53.14 1 ERROR: An error occurred during build. The server returned the following message:


A device build error occurred on the server.

BuildID: 5646831406e17
Error: Get plugin failed.
Publisher: com.coronalabs
Plugin: plugin.openudid

nov. 14 01:40:53.15 2 Android build failed (5)

nov. 14 01:40:53.38 3 ERROR: Build Failed: Error code: 5

 

So… I guess there is nothing I can do other then write support.

First, you have to give people time to reply. You posted your first post at 7:19, and your “I guess all I can do is write support”  at 7:44. That’s 25 minutes. Our community is great, but expecting a reply in 25 minutes is unrealistic.

Now, build error 5 is generally due to an unknown network error, but in this case, it failed to download the plugin OpenUDID. You are trying to build for Android. This plugin is for iOS only (see: https://docs.coronalabs.com/plugin/openudid/))

To fix this in your build.settings change this code:
 

 ["plugin.openudid"] = { publisherId = "com.coronalabs" },

to

 ["plugin.openudid"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, },

Note all the commas at the end of the line.

Rob

Hi Rob

Thank you for your answer. Well, I wrote support because I didn’t know you guys would answer the forum,  when I realized I got an error from the backend, so I though I would report it. All within 25 minutes. just see my other posts above.

May I suggest you put that sample code on the api documentation page?

https://docs.coronalabs.com/plugin/openudid/index.html

I did not notice the small “platform: iOS” notice in the top, but would have noticed the sample.

Have a great weekend.

Daniel

There is a  report problems link at the bottom of the page where you can report documentation issues. I have done this for you.

My point is asking in the forums is the first place to ask questions. You generally will get a faster turn around on here. This is also a question that the community has the full ability to answer. I just happened to be the first one to get here.

Rob