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) ({ "/FaultCode" = "-65794"; "/FaultExtra" = { domain = "-1"; error = "-65795"; msg = "No valid XML data in response"; }; "/FaultString" = "/CFStreamFault"; "/WSDebugInHeaders" = { }; "/kWSHTTPResponseMessage" = "\<CFHTTPMessageRef 0x7fcd8bf40dc0(0x7fcd8bf40dd0)\> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }"; "/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 = { orientation = { default = "landscapeRight", content = "landscapeRight", supported = { "landscapeRight" } }, iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay UIApplicationExitsOnSuspend = false, CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png" }, } }, plugins = { --Social plugin ["CoronaProvider.native.popup.social"] = { --required publisherId = "com.coronalabs", }, --Goole Play game services ["CoronaProvider.gameNetwork.google"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, --Google ads (admob) ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, --Google in app billing v3 ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, --Flurry ["CoronaProvider.analytics.flurry"] = { -- required publisherId = "com.coronalabs", }, --iAds ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, -- Android permissions androidPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.BILLING", }, largeHeap=true, }
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.