admob V2 giving a build error

I am just adding the plugin in build.settings under settings and it’s giving a build error

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

[build error #11]

Unexpected build error (check simulator console for messages.)

// the simulator console says nothing…

I’ve tried to add the older admob plugin and at least it did build.

what could be the problem ???

any leads are appreciated, btw am building for Android!

~ b0b_k

Check your app permissions under ‘build.settings’. Ensure they are correct as docs,

Could you please tell me what docs are you referring to ? I followed the tutorial till the end, I don’t know why I keep getting this error!

btw here’s my build.settings copied from the admob sample on github.

settings = { orientation = { default = "portrait", supported = { "portrait","landscapeLeft" } }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", }, }, }, -- enable the admob plugin plugins = { ["plugin.google.play.services"] = { -- required publisherId = "com.coronalabs", }, }, }

Hi @b0b_k,

Which version (build #) of Corona SDK are you using?

Brent

2014.2393 (2014.8.5) - starter !

What operating system are you using to build your app?

I tried building on both windows 8.1 and mavericks 10.9.5 with no luck !!

I searched the forum two days ago someone said that this error is due to connection problems, where he reset his router and everything worked fine. But it doesn’t make sense I’ve tried admob v1 plugin and it built, why shouldn’t v2 work.

Do you have the ‘permission’ set properly in your build.settings?

See the docs here : http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, },

@yosu in the docs it says

Android

For Android, the following permissions/features are automatically added when using this plugin:

meaning I shouldn’t add these

android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, },

they’re automatically added

thanks for your help, If you find anything interesting and could be helpful please don’t hesitate to share it with me !!

The AdMob V2 plugin is considerably larger than the other plugins.  If you have a flaky Internet connection and the simulator looses contact with the build server, then you will get these weird build errors.  Make sure you don’t have a fire wall in the way.  Make sure you haven’t gotten a proxy turned on (Internet Explorer on Windows loves to do this behind the scenes).  We’ve tried to address this somewhat by switching from http:// calls which tend to get proxied to https:// calls to get around this, but that’s only in daily builds right now and it’s helped a lot with these type of errors.  Places like hotels, public internet (any place that makes you login) is bouncing you trough proxy servers as well.

Okay thanks rob

I will try build using a different internet connection and will update you with the results.

Check your app permissions under ‘build.settings’. Ensure they are correct as docs,

Could you please tell me what docs are you referring to ? I followed the tutorial till the end, I don’t know why I keep getting this error!

btw here’s my build.settings copied from the admob sample on github.

settings = { orientation = { default = "portrait", supported = { "portrait","landscapeLeft" } }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", }, }, }, -- enable the admob plugin plugins = { ["plugin.google.play.services"] = { -- required publisherId = "com.coronalabs", }, }, }

Hi @b0b_k,

Which version (build #) of Corona SDK are you using?

Brent

2014.2393 (2014.8.5) - starter !

What operating system are you using to build your app?

I tried building on both windows 8.1 and mavericks 10.9.5 with no luck !!

I searched the forum two days ago someone said that this error is due to connection problems, where he reset his router and everything worked fine. But it doesn’t make sense I’ve tried admob v1 plugin and it built, why shouldn’t v2 work.

Do you have the ‘permission’ set properly in your build.settings?

See the docs here : http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, },

@yosu in the docs it says

Android

For Android, the following permissions/features are automatically added when using this plugin:

meaning I shouldn’t add these

android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, },

they’re automatically added

thanks for your help, If you find anything interesting and could be helpful please don’t hesitate to share it with me !!

The AdMob V2 plugin is considerably larger than the other plugins.  If you have a flaky Internet connection and the simulator looses contact with the build server, then you will get these weird build errors.  Make sure you don’t have a fire wall in the way.  Make sure you haven’t gotten a proxy turned on (Internet Explorer on Windows loves to do this behind the scenes).  We’ve tried to address this somewhat by switching from http:// calls which tend to get proxied to https:// calls to get around this, but that’s only in daily builds right now and it’s helped a lot with these type of errors.  Places like hotels, public internet (any place that makes you login) is bouncing you trough proxy servers as well.