Can't build for Android with Admob v2 plugin

I was wondering if anyone else was having a problem with this.  I currently cannot build my project for Android when the Admob v2 plugin is included in my build.settings file - when I attempt to do so, I get the following error from the Corona Simulator:

**"Unknown connection error occurred during build.

If you are not connecting to the internet directly (for example, you connect via a proxy server) you might want to try a direct connection to see if that solves the problem."**

I work from home and connect directly to my ISP - so there is no proxy involved.  I also get this problem with my firewall enabled or disabled.  The code works fine when building on iOS, and I have tried disabling every plug in, one at a time, to see if any other plugins are affected; the only time I can’t build is when Admob v2 is included.  I have tried using a variety of daily builds, including the latest (build 2014.2417), over a period of about a week and still cannot get my app to compile.

The error in the console reads:

2014-08-28 14:45:14.826 Corona Simulator[14046:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-08-28 14:45:14.826 Corona Simulator[14046: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 0x7fcd8bf40dc0(0x7fcd8bf40dd0)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; &nbsp;&nbsp;&nbsp; "/kWSResultIsFault" = 1; }) 2014-08-28 14:45:14.827 Corona Simulator[14046:507] WebServicesSession: network problem: /CFStreamFault

Here is a copy of my build.settings file:

settings = { &nbsp;&nbsp; &nbsp;orientation = { &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;default = "landscapeRight", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;content = "landscapeRight", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;supported = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;"landscapeRight" &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;} &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;iphone = { &nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp; UIStatusBarHidden = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIPrerenderedIcon = true, -- set to false for "shine" overlay &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UIApplicationExitsOnSuspend = false, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFBundleIconFiles = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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bsp;&nbsp;&nbsp;&nbsp;&nbsp; --Social plugin &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["CoronaProvider.native.popup.social"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --required &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;&nbsp;&nbsp;&nbsp;&nbsp; --Goole Play game services &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["CoronaProvider.gameNetwork.google"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- required &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; supportedPlatforms = { android = true }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --Google ads (admob) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&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;&nbsp;&nbsp;&nbsp;&nbsp; --Google in app billing v3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["plugin.google.iap.v3"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- required &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; supportedPlatforms = { android = true }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --Flurry &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["CoronaProvider.analytics.flurry"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- required &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;&nbsp;&nbsp;&nbsp;&nbsp; --iAds &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ["CoronaProvider.ads.iads"] = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { &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; supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp; &nbsp;-- Android permissions &nbsp;&nbsp; &nbsp;androidPermissions = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.CHECK\_LICENSE", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "android.permission.ACCESS\_NETWORK\_STATE", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "com.android.vending.BILLING", &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; largeHeap=true,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; }

This is getting really frustrating, as I have a project ready to ship, but now I can’t build for Android.  If anyone out there can help they’ll earn my eternal gratitude!

Simon.

From what we can tell with this error, it’s not caused by the AdMobV2 plugin directly but may be caused by a time-out condition with your Internet connection. Doing a build for Android with the AdMob plugin takes a lot longer for the server to build the code than other plugins (and platforms). This means it takes a longer time for the server to return a response after your computer sends off the data to the server for processing. If your Internet connection thinks the server is not responding, it will close the connection and you will see an error like you’re seeing. This problem could also happen if you a program with a large number of Lua files/code.

We haven’t been able to duplicate this problem directly but we feel it may have to do with the type of Internet connection you have. There could be a remote proxy between you and the Corona Servers that is causing the issue.

Our best suggestion at this time is to try connecting from a different location (using a different Internet provider) and see if you still have the problem.

Also, do you have a large project that you’ve added the AdMob plugin to? Can you try adding the AdMob plugin to the HelloWorld sample app and build that and let us know if that works. You only need to add the plugin to the build.settings file.

One last thing. I know you posted the console of the error message, can you post the entire console contents in case there is something that may be useful.

Thanks,

Tom

Hi Tom,

Thanks for replying so quickly :slight_smile:

The app I’m working on is of a small-to-medium scale - it’s not a toy, but not what I’d describe as large by any means.  As you suggested, I tried adding the AdMob plugin to the HelloWorld sample, and that won’t build either.  The full console error message reads:

2014-08-29 09:17:29.909 Corona Simulator[14902: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-29 09:17:29.910 Corona Simulator[14902:507] &nbsp;&nbsp; &nbsp;Version: 3.0.0 2014-08-29 09:17:29.910 Corona Simulator[14902:507] &nbsp;&nbsp; &nbsp;Build: 2014.2417 2014-08-29 09:17:29.929 Corona Simulator[14902:507] Platform: iPhone / x86\_64 / 10.9 / AMD Radeon HD 6770M OpenGL Engine / 2.1 ATI-1.24.35 / 2014.2417 2014-08-29 09:17:29.976 Corona Simulator[14902:507] The file sandbox for this project is located at the following folder: &nbsp;&nbsp; &nbsp;(/Users/admin/Library/Application Support/Corona Simulator/HelloWorld-412BD0102BD708F03BDC69A1C59703D4) 2014-08-29 09:17:29.994 Corona Simulator[14902:507] binding to port &nbsp;&nbsp; &nbsp;48434 2014-08-29 09:17:29.994 Corona Simulator[14902:507] listening on port &nbsp;&nbsp; &nbsp;48434 2014-08-29 09:17:30.082 Corona Simulator[14902:507] connected 2014-08-29 09:17:30.183 Corona Simulator[14902:507] program started 2014-08-29 09:17:46.024 Corona Simulator[14902:507] Using Custom Build Id 00000 2014-08-29 09:18:18.986 Corona Simulator[14902:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-08-29 09:18:18.987 Corona Simulator[14902: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 0x7fb6b112fca0(0x7fb6b112fcb0)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; &nbsp;&nbsp;&nbsp; "/kWSResultIsFault" = 1; }) 2014-08-29 09:18:18.987 Corona Simulator[14902:507] WebServicesSession: network problem: /CFStreamFault

I wouldn’t be able to try building from a different ISP / physical location for quite a while.  Hope this information provides some glimmer of hope :slight_smile:

Kind regards,

Simon.

 

@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&nbsp;&nbsp;&nbsp;&nbsp; 48434 2014-08-29 09:17:29.994 Corona Simulator[14902:507] listening on port&nbsp;&nbsp;&nbsp;&nbsp; 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;&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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-Small-40.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-Small-40@2x.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-Small-50.png", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Icon-Small-50@2x.png", &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp;}, &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;plugins = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &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.

From what we can tell with this error, it’s not caused by the AdMobV2 plugin directly but may be caused by a time-out condition with your Internet connection. Doing a build for Android with the AdMob plugin takes a lot longer for the server to build the code than other plugins (and platforms). This means it takes a longer time for the server to return a response after your computer sends off the data to the server for processing. If your Internet connection thinks the server is not responding, it will close the connection and you will see an error like you’re seeing. This problem could also happen if you a program with a large number of Lua files/code.

We haven’t been able to duplicate this problem directly but we feel it may have to do with the type of Internet connection you have. There could be a remote proxy between you and the Corona Servers that is causing the issue.

Our best suggestion at this time is to try connecting from a different location (using a different Internet provider) and see if you still have the problem.

Also, do you have a large project that you’ve added the AdMob plugin to? Can you try adding the AdMob plugin to the HelloWorld sample app and build that and let us know if that works. You only need to add the plugin to the build.settings file.

One last thing. I know you posted the console of the error message, can you post the entire console contents in case there is something that may be useful.

Thanks,

Tom

Hi Tom,

Thanks for replying so quickly :slight_smile:

The app I’m working on is of a small-to-medium scale - it’s not a toy, but not what I’d describe as large by any means.  As you suggested, I tried adding the AdMob plugin to the HelloWorld sample, and that won’t build either.  The full console error message reads:

2014-08-29 09:17:29.909 Corona Simulator[14902: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-29 09:17:29.910 Corona Simulator[14902:507] &nbsp;&nbsp; &nbsp;Version: 3.0.0 2014-08-29 09:17:29.910 Corona Simulator[14902:507] &nbsp;&nbsp; &nbsp;Build: 2014.2417 2014-08-29 09:17:29.929 Corona Simulator[14902:507] Platform: iPhone / x86\_64 / 10.9 / AMD Radeon HD 6770M OpenGL Engine / 2.1 ATI-1.24.35 / 2014.2417 2014-08-29 09:17:29.976 Corona Simulator[14902:507] The file sandbox for this project is located at the following folder: &nbsp;&nbsp; &nbsp;(/Users/admin/Library/Application Support/Corona Simulator/HelloWorld-412BD0102BD708F03BDC69A1C59703D4) 2014-08-29 09:17:29.994 Corona Simulator[14902:507] binding to port &nbsp;&nbsp; &nbsp;48434 2014-08-29 09:17:29.994 Corona Simulator[14902:507] listening on port &nbsp;&nbsp; &nbsp;48434 2014-08-29 09:17:30.082 Corona Simulator[14902:507] connected 2014-08-29 09:17:30.183 Corona Simulator[14902:507] program started 2014-08-29 09:17:46.024 Corona Simulator[14902:507] Using Custom Build Id 00000 2014-08-29 09:18:18.986 Corona Simulator[14902:507] Connection error: (corona.build.6) fault(/CFStreamFault) 2014-08-29 09:18:18.987 Corona Simulator[14902: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 0x7fb6b112fca0(0x7fb6b112fcb0)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; &nbsp;&nbsp;&nbsp; "/kWSResultIsFault" = 1; }) 2014-08-29 09:18:18.987 Corona Simulator[14902:507] WebServicesSession: network problem: /CFStreamFault

I wouldn’t be able to try building from a different ISP / physical location for quite a while.  Hope this information provides some glimmer of hope :slight_smile:

Kind regards,

Simon.