Build with CoronaProvider.gameNetwork.google plugin always got "null" build in Android version.

Hi there, can anyone shares the correct build.settings of the plugin part? Because I tried to build android version with google play center setting but always got “null” build. I commented the following part of CoronaProvider.gameNetwork.google and then the build was success. I have no idea what’s wrong with it? Thank you first.

Corona version: Public build 2100

android = { versionCode = "1", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", }, supportsScreens ={ smallScreens = false, normalScreens = true, largeScreens = true, xlargeScreens = true, }, googlePlayGamesAppId = "hidden", --long App ID number (use yours!) }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, ["CoronaProvider.gameNetwork.google"] = { --required! publisherId = "com.coronalabs", supportedPlatforms = { android = true } }, },

You will need to look in your Terminal window (on a Mac, or the console window on a PC) and see what error messages are there.

Rob

Thanks Rob, I got the output in terminal window below, still have no idea about it.

2014-02-22 14:23:16.468 Corona Simulator[47848:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-02-22 14:23:16.469 Corona Simulator[47848:507] Connection error: (corona.build.6) ({ "/FaultCode" = "-65794"; "/FaultExtra" = { domain = "-1"; error = "-65795"; msg = "No valid XML data in response"; }; "/FaultString" = "/CFStreamFault"; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7f82af459e60(0x7f82af459e70)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; "/kWSResultIsFault" = 1; })

I’ll check with our networking team.

Thanks for sending the error log.

Rob

Hi Rob, 

Can you tell me what can I do to publish the Android version with google game play service successfully?

I’ve tried every graphics v2 enabled public builds are all got NULL while publishing.

Thank you for your help first.

Erin

When you say “while publishing”, do you mean when you are in the Corona Simulator and you say “Build for Android” or when you are trying to upload the .apk file to Google Play?
 

Rob

Hi, 

I mean it is in the Corona Simulator and “Build for Android” , and always got the same error as I post below. Thank you for your time.

2014-02-22 14:23:16.468 Corona Simulator[47848:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-02-22 14:23:16.469 Corona Simulator[47848:507] Connection error: (corona.build.6) ({ "/FaultCode" = "-65794"; "/FaultExtra" = { domain = "-1"; error = "-65795"; msg = "No valid XML data in response"; }; "/FaultString" = "/CFStreamFault"; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7f82af459e60(0x7f82af459e70)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; "/kWSResultIsFault" = 1; })

That is a very strange error.  I tried your build.settings and was able to build successfully.

Could post everything you get in the console (not just the part with the error)?  The session should start with:

Copyright (C) 2009-2013&nbsp; C o r o n a&nbsp;&nbsp; L a b s&nbsp;&nbsp; I n c .

Also, when you say you “commented the following part of CoronaProvider.gameNetwork.google and then the build was success” can you post what worked for you?

Lastly, if you could post a screenshot of your “Build for Android” window before you press the “Build” button that would awesome.

Thank you Perry,

First I tried:

android = { versionCode = "1", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", }, supportsScreens ={ smallScreens = false, normalScreens = true, largeScreens = true, xlargeScreens = true }, googlePlayGamesAppId = "hidden", --long App ID number (use yours!) }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.gameNetwork.google"] = { --required! publisherId = "com.coronalabs", supportedPlatforms = { android = true } }, ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, 

And the result was:

goo.gl/sZBD9K

Copyright (C) 2009-2013 C o r o n a L a b s I n c . 2014-03-02 14:21:00.288 Corona Simulator[348:507] Version: 3.0.0 2014-03-02 14:21:00.288 Corona Simulator[348:507] Build: 2013.2100 2014-03-02 14:21:00.354 Corona Simulator[348:507] The file sandbox for this project is located at the following folder: (/Users/erin/Library/Application Support/Corona Simulator/1Second-B3E4B7215B1B35C2F2FC839E2CDFEFED) 2014-03-02 14:21:46.573 Corona Simulator[348:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-03-02 14:21:46.574 Corona Simulator[348:507] Connection error: (corona.build.6) ({ "/FaultCode" = "-65794"; "/FaultExtra" = { domain = "-1"; error = "-65795"; msg = "No valid XML data in response"; }; "/FaultString" = "/CFStreamFault"; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7febca6d3f30(0x7febca6d3f40)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; "/kWSResultIsFault" = 1; })

And then I tried:

android = { versionCode = "1", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", }, supportsScreens ={ smallScreens = false, normalScreens = true, largeScreens = true, xlargeScreens = true }, googlePlayGamesAppId = "hidden", --long App ID number (use yours!) }, plugins = { -- key is the name passed to Lua's 'require()' --["CoronaProvider.gameNetwork.google"] = --{ --required! --publisherId = "com.coronalabs", --supportedPlatforms = { android = true } --}, ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, 

And result was:

goo.gl/dblMaS

I am also getting this error… when I build for IOS…

everything was working fine until I added game center for android and ios.

@andreglegg, you can you post your build.settings as well?

Thanks

Rob

I’ve found my problem I had 

plugins = { ["facebook"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, }, },

but this should only be there for  build 2014.2165 or higher,  right ?

Correct.

@andreglegg, thanks for your replay.

But I’ve already added game center and google play game service(even published it).

Right now still has the same problem on Android version.

Have you tried to build by v2013,2100 ?

@Rob, @Perry

BTW, put the googlePlayGamesAppId and  [“CoronaProvider.gameNetwork.google”]  part to my another project, the building result is the same NULL error.

You will need to look in your Terminal window (on a Mac, or the console window on a PC) and see what error messages are there.

Rob

Thanks Rob, I got the output in terminal window below, still have no idea about it.

2014-02-22 14:23:16.468 Corona Simulator[47848:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-02-22 14:23:16.469 Corona Simulator[47848:507] Connection error: (corona.build.6) ({ "/FaultCode" = "-65794"; "/FaultExtra" = { domain = "-1"; error = "-65795"; msg = "No valid XML data in response"; }; "/FaultString" = "/CFStreamFault"; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7f82af459e60(0x7f82af459e70)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; "/kWSResultIsFault" = 1; })

I’ll check with our networking team.

Thanks for sending the error log.

Rob

I’m also seeing this error, did anyone solve this?

Here is my build log,

2014-03-27 14:13:41.233 Corona Simulator[19657:507] Copyright (C) 2009-2014 C o r o n a L a b s I n c . 2014-03-27 14:13:41.234 Corona Simulator[19657:507] Version: 3.0.0 2014-03-27 14:13:41.234 Corona Simulator[19657:507] Build: 2014.2189 2014-03-27 14:13:47.341 Corona Simulator[19657:507] Copyright (C) 2009-2014 C o r o n a L a b s I n c . 2014-03-27 14:13:47.341 Corona Simulator[19657:507] Version: 3.0.0 2014-03-27 14:13:47.342 Corona Simulator[19657:507] Build: 2014.2189 2014-03-27 14:13:47.373 Corona Simulator[19657:507] Platform: iPhone / x86\_64 / 10.9 / NVIDIA GeForce GT 650M OpenGL Engine / 2.1 NVIDIA-8.24.9 310.40.25f01 2014-03-27 14:13:47.486 Corona Simulator[19657:507] The file sandbox for this project is located at the following folder: (/Users/something/Dalahorse-545B1B162D4DB17F81413E98A694B432) 2014-03-27 14:13:47.759 Corona Simulator[19657:507] [RevMob] Session started for App Id: 530c7b0afd48628107ebfa50 2014-03-27 14:13:47.760 Corona Simulator[19657:507] PlayHaven Not Supported in Simulator 2014-03-27 14:13:47.868 Corona Simulator[19657:507] WARNING: The 'ads' provider (admob) is not available on the simulator 2014-03-27 14:13:47.870 Corona Simulator[19657:507] Chartboost: shouldRequestInterstitial Default? 2014-03-27 14:13:47.895 Corona Simulator[19657:507] WARNING: The 'gameNetwork' provider (gamecenter) is not available on the simulator 2014-03-27 14:13:47.896 Corona Simulator[19657:507] [RevMob] Internet connection available. 2014-03-27 14:13:47.926 Corona Simulator[19657:507] [RevMob] Internet connection available. 2014-03-27 14:13:48.306 Corona Simulator[19657:507] PlayHaven Not Supported in Simulator 2014-03-27 14:13:48.473 Corona Simulator[19657:507] [RevMob] Install already registered in this device 2014-03-27 14:13:48.504 Corona Simulator[19657:507] Chartboost: didFailToLoadInterstitial Default 2014-03-27 14:13:48.505 Corona Simulator[19657:507] Error: received a 404 response from chartboost server 2014-03-27 14:13:48.560 Corona Simulator[19657:507] [RevMob] Fullscreen loaded 2014-03-27 14:15:24.925 Corona Simulator[19657:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-03-27 14:15:24.926 Corona Simulator[19657:507] Connection error: (corona.build.6) ({ "/FaultCode" = "-65794"; "/FaultExtra" = { domain = "-1"; error = "-65795"; msg = "No valid XML data in response"; }; "/FaultString" = "/CFStreamFault"; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7fd11a806e40(0x7fd11a806e50)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; "/kWSResultIsFault" = 1; })

I found a solution after few days I post.

The reason is internet firewall.

I tried to get on the internet directly, and the build was succeed.

Maybe this can help.

Thanks for your answer!

Sounds strange, cause I have no problems to build android / ios apps from my home. But as soon as I add gameNetwork for google I get this problem.