Can't build for Android with Admob v2 plugin

@Happy, are you using an airport? if so have you tried rebooting it yet?

Hi Christopher,

No - I’m using a Billion router.  I’ve just tried rebooting and it makes no difference (I’m attempting to build the Hello World sample now rather than anything more complex).

Thanks though.

Do you know where this debug output is coming from?

2014-08-29 09:17:29.994 Corona Simulator[14902:507] binding to port     48434 2014-08-29 09:17:29.994 Corona Simulator[14902:507] listening on port     48434 2014-08-29 09:17:30.082 Corona Simulator[14902:507] connected

It looks network related and you are having network problems … HelloWorld contains nothing like that.

Can you run the following in the Terminal three times and post the results here? This will tell us if your IP address stays consistent.

curl http://myip.dnsdynamic.com/

Also, are you building this directly from the Corona Simulator or from a third party tool? If so, please build it directly with Corona.

Hi again.

I’m using Lua Glider to edit code, but I’m building directly from the Corona Simulator (the debug output I’m posting comes from Glider’s IDE log).  I tried running curl http://myip.dnsdynamic.com/ three times in my terminal, and this is what I got:

78.147.211.29

78.147.211.29

78.147.211.29

I also tried opening the Hello World sample directly through Corona Simulator (launched via Finder) and still had the same error message from the simulator.

Post the console log for the build in which Glider was not involved.

Did Glider add anything to your main.lua file so when you build directly from Corona it loads their code too? If so, please remove it and see if it runs. The HelloWorld app should be the same as what’s shipped with Corona except for adding the AdMob code to build.settings.

It seems the extra messages Perry mentioned above is from Glider and code it injected in your project.

We need you to run something very clean and generic (HelloWorld) and isolate any third-party code to see if that fails with the AdMob plugin.

Thanks,

Tom

Hi again.

Okay, just to clarify, I’ve: copied the Hello World sample into a brand new directory; added the Admob v2 plugin using Text Wrangler; launched the simulator / terminal manually through Finder; ran the modified Hello World sample; and finally attempted to build for Android.

I still get the same error message out of Corona when I attempt to build (which is display through an error dialog window).  The console log printed in Terminal reads:

2014-08-30 10:15:51.190 Corona Simulator[17071:507] Copyright (C) 2009-2014&nbsp; C o r o n a&nbsp;&nbsp; L a b s&nbsp;&nbsp; I n c . 2014-08-30 10:15:51.190 Corona Simulator[17071:507] &nbsp;&nbsp; &nbsp;Version: 3.0.0 2014-08-30 10:15:51.190 Corona Simulator[17071:507] &nbsp;&nbsp; &nbsp;Build: 2014.2417 2014-08-30 10:15:51.221 Corona Simulator[17071:507] Platform: iPhone / x86\_64 / 10.9 / AMD Radeon HD 6770M OpenGL Engine / 2.1 ATI-1.24.35 / 2014.2417 2014-08-30 10:15:51.305 Corona Simulator[17071:507] The file sandbox for this project is located at the following folder: &nbsp;&nbsp; &nbsp;(/Users/admin/Library/Application Support/Corona Simulator/HelloWorld2-A2ABEF354417C2BD0EEAA9693E83AF83) 2014-08-30 10:16:01.778 Corona Simulator[17071:507] Using Custom Build Id 00000 2014-08-30 10:16:34.694 Corona Simulator[17071:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-08-30 10:16:34.719 Corona Simulator[17071:507] Connection error: (corona.build.6) ({ &nbsp;&nbsp;&nbsp; "/FaultCode" = "-65794"; &nbsp;&nbsp;&nbsp; "/FaultExtra" =&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain = "-1"; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error = "-65795"; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msg = "No valid XML data in response"; &nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp; "/FaultString" = "/CFStreamFault"; &nbsp;&nbsp;&nbsp; "/WSDebugInHeaders" =&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7f9053facd10(0x7f9053facd20)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; &nbsp;&nbsp;&nbsp; "/kWSResultIsFault" = 1; }) 2014-08-30 10:16:34.719 Corona Simulator[17071:507] WebServicesSession: network problem: /CFStreamFault

The only modification to the original Hello World sample is in the inclusion of the Admob v2 plugin as below:

settings = { &nbsp;&nbsp; &nbsp;orientation = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;default = "portrait", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;supported = { "portrait" } &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;iphone = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;plist = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CFBundleIconFile = "Icon.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CFBundleIconFiles = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon@2x.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-60.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-60@2x.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-72.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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; &nbsp;&nbsp;&nbsp; &nbsp;--Google ads (admob) &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;["plugin.google.play.services"] = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;publisherId = "com.coronalabs" &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; }

PS - the only thing I believe Glider adds to my code is a debug library, which I made sure was removed before building in previous attempts.  (And to be doubly clear, the build above didn’t involve Glider at all).

Thanks for running the tests. Unfortunately nothing stands out as the cause of your problem. Others can build the plugin without any problems and we can’t duplicate the problem here. I thought the Glider debug module might be causing the problem since it uses network calls for debug and I thought there may be a conflict. Out server guy gets back next week and maybe he can look at the server logs to see if anything stands out with your builds.

One more thing I would like to know. How long after you click Build do you see the error in the terminal? Is it right away or after a few minutes?

As I mentioned earlier, it would be nice if you can try doing the same build from another location to see if the Internet connection is causing the problem.

Thanks,

Tom

Hi Tom,

The build fails after about 35 seconds.  I’ll see if I can try to build in a different location over the next couple of days.

Many thanks,

Simon

Hi Tom,

I’m hoping to be able to try a build by a different ISP at the weekend, although if that is successful, it doesn’t help me solve my problems with my ISP.

If I were to upgrade my Corona subscription to Enterprise and build offline, would that make all these problems go away?

Regards,

Simon.

Hi Tom,

I can confirm that I’ve tried this on a different computer (Macbook Air) on a different ISP and I still cannot build the Hello World example with the Admob v2 plugin.  I’m now using build 2014.2417; I also used a different computer (a MacBook Air) to check if there was something peculiar about the network configuration on my iMac.  The output from the console is:

Last login: Tue Aug 26 18:16:15 on ttys000 unknown-b8-e8-56-09-47-44:~ admin$ /Applications/CoronaSDK/Corona\ Terminal ; exit; 2014-09-09 19:29:15.016 Corona Simulator[17474:507] Copyright (C) 2009-2014&nbsp; C o r o n a&nbsp;&nbsp; L a b s&nbsp;&nbsp; I n c . 2014-09-09 19:29:15.016 Corona Simulator[17474:507] &nbsp;&nbsp; &nbsp;Version: 3.0.0 2014-09-09 19:29:15.016 Corona Simulator[17474:507] &nbsp;&nbsp; &nbsp;Build: 2014.2417 2014-09-09 19:29:24.152 Corona Simulator[17474:507] Copyright (C) 2009-2014&nbsp; C o r o n a&nbsp;&nbsp; L a b s&nbsp;&nbsp; I n c . 2014-09-09 19:29:24.152 Corona Simulator[17474:507] &nbsp;&nbsp; &nbsp;Version: 3.0.0 2014-09-09 19:29:24.152 Corona Simulator[17474:507] &nbsp;&nbsp; &nbsp;Build: 2014.2417 2014-09-09 19:29:24.168 Corona Simulator[17474:507] Platform: iPhone / x86\_64 / 10.9 / Intel HD Graphics 5000 OpenGL Engine / 2.1 INTEL-8.28.30 / 2014.2417 2014-09-09 19:29:24.554 Corona Simulator[17474:507] The file sandbox for this project is located at the following folder: &nbsp;&nbsp; &nbsp;(/Users/admin/Library/Application Support/Corona Simulator/HelloWorld2-7CE5DAE928B30582E3E17F18223B6249) 2014-09-09 19:29:41.142 Corona Simulator[17474:507] Using Custom Build Id 00000 2014-09-09 19:30:13.761 Corona Simulator[17474:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-09-09 19:30:13.761 Corona Simulator[17474:507] Connection error: (corona.build.6) ({ &nbsp;&nbsp;&nbsp; "/FaultCode" = "-65794"; &nbsp;&nbsp;&nbsp; "/FaultExtra" =&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain = "-1"; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error = "-65795"; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msg = "No valid XML data in response"; &nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp; "/FaultString" = "/CFStreamFault"; &nbsp;&nbsp;&nbsp; "/WSDebugInHeaders" =&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7fcee2f47130(0x7fcee2f47140)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; &nbsp;&nbsp;&nbsp; "/kWSResultIsFault" = 1; }) 2014-09-09 19:30:13.762 Corona Simulator[17474:507] WebServicesSession: network problem: /CFStreamFault

I tried building with both the standard Android debug keystore, and a production Android keystore that has been used successfully on other another app, and I get the result same result.

Please help!

Simon

Try with today’s Daily Build (2014.2428 or later).  And be sure to turn off any anti-virus software you might be running.

Something in your network setup is stopping the build server’s responses reaching your Simulator (causing the “body = 0 bytes” in the response).  The latest Daily Build communicates over HTTPS rather than HTTP and should be more resistant to such things.

If it still doesn’t work, run this command in the Terminal and then build again and PM me the entire console log (there will be quite a lot of it):

defaults write com.coronalabs.Corona\_Simulator debugWebServices 3

This will turn on some new connection debugging we’ve added to the Simulator.

You can turn off the debugging output with:

defaults delete com.coronalabs.Corona\_Simulator debugWebServices&nbsp;

Hi Perry,

The latest daily build worked like a treat - clearly building over HTTPS fixed the problem.  If you weren’t on the other side of the world I’d buy you a beer :slight_smile:

Many thanks,

Simon.