Trying to build for android on a pc and getting [Build Error #12]

Hi,

This is a new problem that I’m having as I’ve successfully build for android before on the same project. However now when I attempt to build my project for android, I get an error which simply says "[Build Error #12]

More information may be available in the Simulator Console"

Interestingly, I can build the project for windows and it works fine.

Any help would be greatly appreciated!

What other messages are in your console log?

Only this:

17:48:50.584  Copyright © 2009-2016  C o r o n a   L a b s   I n c .

17:48:50.584   Version: 3.0.0

17:48:50.584   Build: 2016.2830

17:48:50.584  Platform: iPhone / x64 / 10.0 / Intel® HD Graphics 4000 / 4.0.0 - Build 10.18.10.4276 / 2016.2830 / en_GB | GB | en_GB | en

17:48:50.594  Loading project from:   C:\Users\asmay_000\Dropbox\Uni Year 3\Project\Corona Projects\Project

17:48:50.594  Project sandbox folder: C:\Users\asmay_000\AppData\Local\Corona Labs\Corona Simulator\Sandbox\project-23AF5259FC08CA06F09AE3E9BF9942DF\Documents

I’ll ask to see what the error means, but be aware, it’s a holiday weekend and I would not expect a response for a couple of days.

Rob

In the mean time do you have this problem if you try and build our “HelloWorld” sample app included with Corona SDK and see if it also causes the error.

You can also increase the debugging levels by following these instructions:

  1. Run RegEdit 

  2. Search for “Ansca Corona” in HKEY_CURRENT_USER\Software

  3. Under Corona Simulator\Preferences add a New String Value, “debugWebServices”

  4. Right click on the value just added and click Modify …

  5. Enter 1 for a value. (0 will restore the debug output to normal)

  6. Now do a build and notice more information about the build in the Corona Simulator Console. Please capture that information and send it in a reply to this email.

For #5, the value can be between 0 (minimal log messages) and 3 (a bunch, so start at 1).  Post that back here too.

Thanks

Rob

The hello world sample app built fine. Thanks for the suggestion, I’ll have a go at that in the morning and let you know how it goes! 

Ok I’ve done that and this is what I get with a value of 2:

10:59:01.334  

10:59:01.334  Windows simulator build date: Feb 18 2016 @ 02:28:53

10:59:01.334  

10:59:03.671  

10:59:03.671  Copyright © 2009-2016  C o r o n a   L a b s   I n c .

10:59:03.671   Version: 3.0.0

10:59:03.671   Build: 2016.2830

10:59:03.671  Platform: iPhone / x64 / 10.0 / Intel® HD Graphics 4000 / 4.0.0 - Build 10.18.10.4276 / 2016.2830 / en_GB | GB | en_GB | en

10:59:03.681  Loading project from:   C:\Users\asmay_000\Dropbox\Uni Year 3\Project\Corona Projects\Project

10:59:03.681  Project sandbox folder: C:\Users\asmay_000\AppData\Local\Corona Labs\Corona Simulator\Sandbox\project-23AF5259FC08CA06F09AE3E9BF9942DF\Documents

10:59:20.564  WebServices: Call: system.connect (no params)

10:59:21.220  WebServices: Response received in 1 seconds

10:59:21.220  WebServices: Call: corona.getTime (no params)

10:59:21.695  WebServices: Response received in 0 seconds

10:59:21.695  WebServices: Call: user.login2 

10:59:21.695             params:  {

10:59:21.695      “hash” = “b45711eb0ca758232c220969a99a06e98374486baee08a42ec667049cfbe2201”

10:59:21.695      “domain_name” = “developer.anscamobile.com

10:59:21.695      “domain_time_stamp” = “1464602360”

10:59:21.695      “nonce” = “jHXdNORcCN”

10:59:21.695      “sessid” = “2a7f990b782ab7ddebe713b7417a0a84”

10:59:21.695      “username” = “maya1@cardiff.ac.uk

10:59:21.695      “encryptedPassword” = “9104943eed34944051ba24d442ffd13d7e1bb43eb939fccbf994c25f6536d53f0aeda9867b2a2ec85a3405348573de5a2f88f5c3dd45d77ce5c7b1e5ffa5765bfdbd1f62b811fc1edcbc7fca39d59e8dd627f1300660a1a08e68df867972bfb720ae2b9432e8119aac4ef85783440407c89b2d4499a8551d6148e87ff99a4d097d9f9ee7fc38c60f56499a1d4a9ee0467eb2f3f02d2dbf54b7595e1d68c8657329d403d2bfcf92a8d0303fc6658d2b9bfd3c1e7231a890714fd00901f33728ec45aa7d9d679b7d7858a5ee3c56797a4bf001ebe3c505e1d4a1b61fc2281fb505eff180315907687de99da75ce221ba74c3520c6626ce8526429241dc1cdbde00”

10:59:21.695      “timestamp” = “56c50980”

10:59:21.695  }

10:59:22.424  WebServices: Response received in 1 seconds

10:59:22.434  Excluding specified files from build: 

10:59:22.775  WebServices: Call: corona.build.6 

10:59:22.775             params:  {

10:59:22.775      “hash” = “12a2600eca5571f160b387b0ef60772e031f4da858ea489dda92200fc1c8a691”

10:59:22.775      “domain_name” = “developer.anscamobile.com

10:59:22.775      “domain_time_stamp” = “1464602361”

10:59:22.775      “nonce” = “nXphzZGCKw”

10:59:22.775      “sessid” = “d460270962060e92d93bdea5117f1f7b”

10:59:22.775      “deviceId” = “b9eb34381525015da5498404ac2aed9a”

10:59:22.775      “timestamp” = “56c50980”

10:59:22.775      “appname” = “project”

10:59:22.775      “file” = <71376 bytes of data elided>

10:59:22.775      “device” = 0

10:59:22.775      “platform” = 1

10:59:22.775      “version” = 123300

10:59:22.775      “appPackage” = “uk.ac.cardiff.MayA1.Project”

10:59:22.775      “customBuildId” = “(null)”

10:59:22.775      “productId” = “basic”

10:59:22.775      “clientPlatform” = “Win”

10:59:22.775      “certType” = “developer”

10:59:22.775      “appVersion” = “1.2.5”

10:59:22.775      “launchPad” = 0

10:59:22.775      “json” = “{“isLaunchPadActive”:false,“targetCertType”:“developer”,“targetPlatformVersion”:123300,“targetDevice”:0,“dailyBuildRevision”:2830,“clientPlatform”:“Win”,“targetAppStore”:“google”,“targetPlatform”:1,“clientDeviceId”:“b9eb34381525015da5498404ac2aed9a”,“plugins”:[],“dailyBuildYear”:2016,“clientProductId”:“basic”,“appName”:“project”}”

10:59:22.775  }

10:59:30.556  WebServices: Response received in 8 seconds

10:59:30.556  BuildID: 574c0efaa1383

10:59:30.556  WebServices: Call: corona.get 

10:59:30.556             params:  {

10:59:30.556      “hash” = “1145626467bd18e7de64e9d96eed787fe8b1f959eab6b5e5f54d90968c8128ff”

10:59:30.556      “domain_name” = “developer.anscamobile.com

10:59:30.556      “domain_time_stamp” = “1464602369”

10:59:30.556      “nonce” = “wITEyMlhMp”

10:59:30.556      “sessid” = “d460270962060e92d93bdea5117f1f7b”

10:59:30.556      “buildsessionid” = “574c0efaa1383”

10:59:30.556  }

10:59:35.185  WebServices: Response received in 5 seconds

10:59:37.979  Android build failed (12)

10:59:37.979  WebServices: Call: user.logout 

10:59:37.979             params:  {

10:59:37.979      “hash” = “b22483db443e35f54eb1b67f405125ac57fb1529daeb08ea1975f113860c0873”

10:59:37.979      “domain_name” = “developer.anscamobile.com

10:59:37.979      “domain_time_stamp” = “1464602376”

10:59:37.979      “nonce” = “WrphYGQxsm”

10:59:37.979      “sessid” = “d460270962060e92d93bdea5117f1f7b”

10:59:37.979  }

10:59:38.474  WebServices: Response received in 1 seconds

Since you can build HelloWorld, can you a) post your build.settings here so we can look at it and b) replace your build.settings with the one from HelloWorld and try building (save your build.settings somewhere else).

Rob

Just tried starting a completely new project and copying in all of the lua files and images from my project except for the build and config files and it’s building now although I don’t really know why it wasn’t working before. This is the build.settings file I was using:

settings =

{

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “landscapeRight”,

supported = { “landscapeRight”, “landscapeLeft”}

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

–android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon.png”,

“Icon@2x.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

},

},

window = 

{

defaultViewWidth = 480,

defaultViewHeight = 320,

resizable = true,

enableCloseButton = true,

enableMinimizeButton = true,

enableMaximizeButton = true,

titleText = {

default = “Cardiff University Virtual Laboratory”,

}

}

}

I don’t see anything wrong with the build.settings. In the future, please click on the blue <> button in the row with Bold, Italics, etc. and paste your code in the popup window. It will make it easier to read. There is always a chance you had some invisible character in one of the files that was tripping up the process. Just build your build.settings back up a little at a time and see how it goes.

Rob

What other messages are in your console log?

Only this:

17:48:50.584  Copyright © 2009-2016  C o r o n a   L a b s   I n c .

17:48:50.584   Version: 3.0.0

17:48:50.584   Build: 2016.2830

17:48:50.584  Platform: iPhone / x64 / 10.0 / Intel® HD Graphics 4000 / 4.0.0 - Build 10.18.10.4276 / 2016.2830 / en_GB | GB | en_GB | en

17:48:50.594  Loading project from:   C:\Users\asmay_000\Dropbox\Uni Year 3\Project\Corona Projects\Project

17:48:50.594  Project sandbox folder: C:\Users\asmay_000\AppData\Local\Corona Labs\Corona Simulator\Sandbox\project-23AF5259FC08CA06F09AE3E9BF9942DF\Documents

I’ll ask to see what the error means, but be aware, it’s a holiday weekend and I would not expect a response for a couple of days.

Rob

In the mean time do you have this problem if you try and build our “HelloWorld” sample app included with Corona SDK and see if it also causes the error.

You can also increase the debugging levels by following these instructions:

  1. Run RegEdit 

  2. Search for “Ansca Corona” in HKEY_CURRENT_USER\Software

  3. Under Corona Simulator\Preferences add a New String Value, “debugWebServices”

  4. Right click on the value just added and click Modify …

  5. Enter 1 for a value. (0 will restore the debug output to normal)

  6. Now do a build and notice more information about the build in the Corona Simulator Console. Please capture that information and send it in a reply to this email.

For #5, the value can be between 0 (minimal log messages) and 3 (a bunch, so start at 1).  Post that back here too.

Thanks

Rob

The hello world sample app built fine. Thanks for the suggestion, I’ll have a go at that in the morning and let you know how it goes! 

Ok I’ve done that and this is what I get with a value of 2:

10:59:01.334  

10:59:01.334  Windows simulator build date: Feb 18 2016 @ 02:28:53

10:59:01.334  

10:59:03.671  

10:59:03.671  Copyright © 2009-2016  C o r o n a   L a b s   I n c .

10:59:03.671   Version: 3.0.0

10:59:03.671   Build: 2016.2830

10:59:03.671  Platform: iPhone / x64 / 10.0 / Intel® HD Graphics 4000 / 4.0.0 - Build 10.18.10.4276 / 2016.2830 / en_GB | GB | en_GB | en

10:59:03.681  Loading project from:   C:\Users\asmay_000\Dropbox\Uni Year 3\Project\Corona Projects\Project

10:59:03.681  Project sandbox folder: C:\Users\asmay_000\AppData\Local\Corona Labs\Corona Simulator\Sandbox\project-23AF5259FC08CA06F09AE3E9BF9942DF\Documents

10:59:20.564  WebServices: Call: system.connect (no params)

10:59:21.220  WebServices: Response received in 1 seconds

10:59:21.220  WebServices: Call: corona.getTime (no params)

10:59:21.695  WebServices: Response received in 0 seconds

10:59:21.695  WebServices: Call: user.login2 

10:59:21.695             params:  {

10:59:21.695      “hash” = “b45711eb0ca758232c220969a99a06e98374486baee08a42ec667049cfbe2201”

10:59:21.695      “domain_name” = “developer.anscamobile.com

10:59:21.695      “domain_time_stamp” = “1464602360”

10:59:21.695      “nonce” = “jHXdNORcCN”

10:59:21.695      “sessid” = “2a7f990b782ab7ddebe713b7417a0a84”

10:59:21.695      “username” = “maya1@cardiff.ac.uk

10:59:21.695      “encryptedPassword” = “9104943eed34944051ba24d442ffd13d7e1bb43eb939fccbf994c25f6536d53f0aeda9867b2a2ec85a3405348573de5a2f88f5c3dd45d77ce5c7b1e5ffa5765bfdbd1f62b811fc1edcbc7fca39d59e8dd627f1300660a1a08e68df867972bfb720ae2b9432e8119aac4ef85783440407c89b2d4499a8551d6148e87ff99a4d097d9f9ee7fc38c60f56499a1d4a9ee0467eb2f3f02d2dbf54b7595e1d68c8657329d403d2bfcf92a8d0303fc6658d2b9bfd3c1e7231a890714fd00901f33728ec45aa7d9d679b7d7858a5ee3c56797a4bf001ebe3c505e1d4a1b61fc2281fb505eff180315907687de99da75ce221ba74c3520c6626ce8526429241dc1cdbde00”

10:59:21.695      “timestamp” = “56c50980”

10:59:21.695  }

10:59:22.424  WebServices: Response received in 1 seconds

10:59:22.434  Excluding specified files from build: 

10:59:22.775  WebServices: Call: corona.build.6 

10:59:22.775             params:  {

10:59:22.775      “hash” = “12a2600eca5571f160b387b0ef60772e031f4da858ea489dda92200fc1c8a691”

10:59:22.775      “domain_name” = “developer.anscamobile.com

10:59:22.775      “domain_time_stamp” = “1464602361”

10:59:22.775      “nonce” = “nXphzZGCKw”

10:59:22.775      “sessid” = “d460270962060e92d93bdea5117f1f7b”

10:59:22.775      “deviceId” = “b9eb34381525015da5498404ac2aed9a”

10:59:22.775      “timestamp” = “56c50980”

10:59:22.775      “appname” = “project”

10:59:22.775      “file” = <71376 bytes of data elided>

10:59:22.775      “device” = 0

10:59:22.775      “platform” = 1

10:59:22.775      “version” = 123300

10:59:22.775      “appPackage” = “uk.ac.cardiff.MayA1.Project”

10:59:22.775      “customBuildId” = “(null)”

10:59:22.775      “productId” = “basic”

10:59:22.775      “clientPlatform” = “Win”

10:59:22.775      “certType” = “developer”

10:59:22.775      “appVersion” = “1.2.5”

10:59:22.775      “launchPad” = 0

10:59:22.775      “json” = “{“isLaunchPadActive”:false,“targetCertType”:“developer”,“targetPlatformVersion”:123300,“targetDevice”:0,“dailyBuildRevision”:2830,“clientPlatform”:“Win”,“targetAppStore”:“google”,“targetPlatform”:1,“clientDeviceId”:“b9eb34381525015da5498404ac2aed9a”,“plugins”:[],“dailyBuildYear”:2016,“clientProductId”:“basic”,“appName”:“project”}”

10:59:22.775  }

10:59:30.556  WebServices: Response received in 8 seconds

10:59:30.556  BuildID: 574c0efaa1383

10:59:30.556  WebServices: Call: corona.get 

10:59:30.556             params:  {

10:59:30.556      “hash” = “1145626467bd18e7de64e9d96eed787fe8b1f959eab6b5e5f54d90968c8128ff”

10:59:30.556      “domain_name” = “developer.anscamobile.com

10:59:30.556      “domain_time_stamp” = “1464602369”

10:59:30.556      “nonce” = “wITEyMlhMp”

10:59:30.556      “sessid” = “d460270962060e92d93bdea5117f1f7b”

10:59:30.556      “buildsessionid” = “574c0efaa1383”

10:59:30.556  }

10:59:35.185  WebServices: Response received in 5 seconds

10:59:37.979  Android build failed (12)

10:59:37.979  WebServices: Call: user.logout 

10:59:37.979             params:  {

10:59:37.979      “hash” = “b22483db443e35f54eb1b67f405125ac57fb1529daeb08ea1975f113860c0873”

10:59:37.979      “domain_name” = “developer.anscamobile.com

10:59:37.979      “domain_time_stamp” = “1464602376”

10:59:37.979      “nonce” = “WrphYGQxsm”

10:59:37.979      “sessid” = “d460270962060e92d93bdea5117f1f7b”

10:59:37.979  }

10:59:38.474  WebServices: Response received in 1 seconds

Since you can build HelloWorld, can you a) post your build.settings here so we can look at it and b) replace your build.settings with the one from HelloWorld and try building (save your build.settings somewhere else).

Rob

Just tried starting a completely new project and copying in all of the lua files and images from my project except for the build and config files and it’s building now although I don’t really know why it wasn’t working before. This is the build.settings file I was using:

settings =

{

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “landscapeRight”,

supported = { “landscapeRight”, “landscapeLeft”}

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

–android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon.png”,

“Icon@2x.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

},

},

window = 

{

defaultViewWidth = 480,

defaultViewHeight = 320,

resizable = true,

enableCloseButton = true,

enableMinimizeButton = true,

enableMaximizeButton = true,

titleText = {

default = “Cardiff University Virtual Laboratory”,

}

}

}

I don’t see anything wrong with the build.settings. In the future, please click on the blue <> button in the row with Bold, Italics, etc. and paste your code in the popup window. It will make it easier to read. There is always a chance you had some invisible character in one of the files that was tripping up the process. Just build your build.settings back up a little at a time and see how it goes.

Rob