AdMob V2 cannot build in Public Release 2014.2381

I’m trying to upgrade my app’s ads service to the new admob supported by the new public release, however, since installing the new public release, I have not been able to build my application. The same error keeps coming up during the build phase:

[Build Error #11]

Unexpected build error (check the Simulator console for messages).

No messages appear in the console. The app worked and can be built fine with the old admob plugin and with the other plugins. Just when the new plugin.google.play.services was added to the build.settings, the error occurs. 

I’ve tried reinstalling Corona SDK, error still occurs.

Is there a solution to this?

Thanks

Can you paste your build.settings? Also can you try to build one more time?

settings = { orientation = { default = "portrait", supported = {"portrait","portraitUpsideDown"}, }, android = { versionCode = "2", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, }, }

I’ve tried building several times. No success.

Hi,

I also encounter the same problem with the latest public release 2014.2381,

I cannot build on android platform, iOS platform works fine.

This is the error message i got when build on android:

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.

Check the console for more information.

and the error in the console:

2014-08-05 08:36:10.896 Corona Simulator[435:707] Connection error: (corona.build.6) fault(/CFStreamFault)
2014-08-05 08:36:10.896 Corona Simulator[435:707] Connection error: (corona.build.6) ({
    “/FaultCode” = “-65794”;
    “/FaultExtra” =     {
        domain = “-1”;
        error = “-65795”;
        msg = “No valid XML data in response”;
    };
    “/FaultString” = “/CFStreamFault”;
    “/WSDebugInHeaders” =     {
    };
    “/kWSHTTPResponseMessage” = “<CFHTTPMessageRef 0x7fc1a574b460(0x7fc1a574b470)> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }”;
    “/kWSResultIsFault” = 1;
})
 

I hope it can help the corona team to find the problem.

As for my build.settings, it is very similar with mioastudio’s build.settings:

[lua]

settings = {
    
    orientation = {
        default = “landscapeRight”,
        supported = { “landscapeRight”, }
    },
    
    iphone = {
        plist = {
            UIStatusBarHidden = false,
            UIPrerenderedIcon = true, – set to false for “shine” overlay
        }
    },

  plugins =
  {
     [“plugin.google.play.services”] =
     {
        publisherId = “com.coronalabs”
     },
  },
}
[/lua]

Please kindly help.

Thanks & Best Regards,

mintymint

I can now build my application, however I have not changed anything in my program apart from tidying up the indentation of my build.settings.

It may have been a connection problem that caused the google plugin to not be built properly into the apk.

I spent a little bit of time digging into this yesterday. On the server side as far as I can see both of your applications are building fine. The only conclusion I can draw form that is that there’s a connection issue, or some kind of web filtering that’s getting in the way.

Hi, thanks for the replies.

I still unable to build for Admob v2 for Android.

Normally I use my home internet which connected through router etc, and it built admob v1 just fine.

But just out of curiosity, I tried to built using my other internet connection, which is a mobile internet and it works!

and I didn’t make any code change at all. :slight_smile:

So there’s workaround, but still I think it’s a bit weird that only that admob v2 is the only things that doesn’t work.

Maybe CoronaLabs want to take a look some more on this matter.

Thanks & Best Regards,

Mintymint

Sometimes your network will get setup to use a network “Proxy”.  This is basically directing your network traffic through another server instead of letting you open ports directly to the host you’re trying to reach.  This could be your home network router, or it could be an upstream server by your service provider, or some people do it intentionally to try and mask their packets through the internet.

Corona SDK needs to have ports other than the standard internet ports open to work.  Typically a firewall might be blocking it, but its usually this proxy server that’s guilty.  You can use the links below to learn how to turn your proxy off and see if that will allow you to build.

Mac: https://www.youtube.com/watch?v=LnQo2IxMkDQ

Windows: http://windows.microsoft.com/en-us/windows/change-internet-explorer-proxy-server-settings#1TC=windows-7

Could there be a problem with the admob v2 plugin? Similar to mintymint, I am using a connection which I usually use to build apps with Corona before admob v2. Even now, without the admob v2 plugin, android apps are building fine. With the admob v2 plugin inserted in the build.settings, I still get the #11 error. This has occured in a few of the network connections that I have used when trying to build Android apps. These connections were all fine for building before.

Are you sure no proxies or firewalls are in the way?

Hi Rob,

I check mine and confirm that there is no proxies and no firewalls.

As mentioned by mioastudio, could there is a problem with Admob v2 plugin for Android?

since everything is okay except when I using plugin for Admob v2 for Android build.

@mioastudio: so it is sometimes can build and sometimes cannot build for you?

Can you post your build.settings?

Hi Rob,

If it helps, I get this problem too - my app uses several plug-ins, all of which build fine for iOS.  When I attempt to build for Android, I get the errors described above.  When I comment out the admob v2 plug in (“plugin.google.play.services”), everything builds just fine, so there don’t appear to be any issues talking to your servers in general.  I’m compiling on a Mac, and I’ve tried turning off the firewall and still get the same problems.  I’m not connected to any proxy, and I’m using the very latest daily build.

Kind regards,

Simon

Can you paste your build.settings? Also can you try to build one more time?

settings = { orientation = { default = "portrait", supported = {"portrait","portraitUpsideDown"}, }, android = { versionCode = "2", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, }, }

I’ve tried building several times. No success.

Hi,

I also encounter the same problem with the latest public release 2014.2381,

I cannot build on android platform, iOS platform works fine.

This is the error message i got when build on android:

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.

Check the console for more information.

and the error in the console:

2014-08-05 08:36:10.896 Corona Simulator[435:707] Connection error: (corona.build.6) fault(/CFStreamFault)
2014-08-05 08:36:10.896 Corona Simulator[435:707] Connection error: (corona.build.6) ({
    “/FaultCode” = “-65794”;
    “/FaultExtra” =     {
        domain = “-1”;
        error = “-65795”;
        msg = “No valid XML data in response”;
    };
    “/FaultString” = “/CFStreamFault”;
    “/WSDebugInHeaders” =     {
    };
    “/kWSHTTPResponseMessage” = “<CFHTTPMessageRef 0x7fc1a574b460(0x7fc1a574b470)> { simple response, url = http://developer.coronalabs.com/services/xmlrpc, body = 0 bytes }”;
    “/kWSResultIsFault” = 1;
})
 

I hope it can help the corona team to find the problem.

As for my build.settings, it is very similar with mioastudio’s build.settings:

[lua]

settings = {
    
    orientation = {
        default = “landscapeRight”,
        supported = { “landscapeRight”, }
    },
    
    iphone = {
        plist = {
            UIStatusBarHidden = false,
            UIPrerenderedIcon = true, – set to false for “shine” overlay
        }
    },

  plugins =
  {
     [“plugin.google.play.services”] =
     {
        publisherId = “com.coronalabs”
     },
  },
}
[/lua]

Please kindly help.

Thanks & Best Regards,

mintymint

I can now build my application, however I have not changed anything in my program apart from tidying up the indentation of my build.settings.

It may have been a connection problem that caused the google plugin to not be built properly into the apk.

I spent a little bit of time digging into this yesterday. On the server side as far as I can see both of your applications are building fine. The only conclusion I can draw form that is that there’s a connection issue, or some kind of web filtering that’s getting in the way.

Hi, thanks for the replies.

I still unable to build for Admob v2 for Android.

Normally I use my home internet which connected through router etc, and it built admob v1 just fine.

But just out of curiosity, I tried to built using my other internet connection, which is a mobile internet and it works!

and I didn’t make any code change at all. :slight_smile:

So there’s workaround, but still I think it’s a bit weird that only that admob v2 is the only things that doesn’t work.

Maybe CoronaLabs want to take a look some more on this matter.

Thanks & Best Regards,

Mintymint

Sometimes your network will get setup to use a network “Proxy”.  This is basically directing your network traffic through another server instead of letting you open ports directly to the host you’re trying to reach.  This could be your home network router, or it could be an upstream server by your service provider, or some people do it intentionally to try and mask their packets through the internet.

Corona SDK needs to have ports other than the standard internet ports open to work.  Typically a firewall might be blocking it, but its usually this proxy server that’s guilty.  You can use the links below to learn how to turn your proxy off and see if that will allow you to build.

Mac: https://www.youtube.com/watch?v=LnQo2IxMkDQ

Windows: http://windows.microsoft.com/en-us/windows/change-internet-explorer-proxy-server-settings#1TC=windows-7