java.lang.VerifyError: com/google/android/gms/ads/AdSize when including CoronaProvider.gameNetwork.google plugin into build.settings

Hi,

I have my admob configured and displaying on my actual device. However when I add the CoronaProvider.gameNetwork.google into the plugins and googlePlayGamesAppId in android, I encounter a java.lang.VerifyError: com/google/android/gms/ads/AdSize dialog on my device screen. This error still occurs even without any application code involving gameNetwork, only a mere plugin and games app id inclusion into build.settings

I then found out I can get it to work with either one of them, but not both. I can display my Google Play Game Service achievements so I know my build.settings and application code are definitely working. I later found out empircally by omitting the CoronaProvider.gameNetwork.google from the plugins and then both my AdMobs and GPGS achievements worked. I suspect it could be a class incompatibility or something when the two plugins ( CoronaProvider.gameNetwork.google and plugin.google.play.services ) come are declared together. Using the latter plugin works, hence sharing this information.

I tested these on my actual device running Android 4.4.2. App built using Corona SDK version 3.0.0 build 2014.2393 , Windows + Sublime Corona Editor

build.settings (initially just ads)

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

main.lua displaying ads (this works)

local ads = require( "ads" ) ... ads.init( adProvider, appID, adListener ) ads.show( "banner", { x=0, y=0, appID=bannerAppID } )

Adding CoronaProvider.gameNetwork.google and googlePlayGamesAppId leads to mentioned error:

settings = { android = { versionCode = "3", usesPermissions = { "android.permission.INTERNET", }, googlePlayGamesAppId = "xxxxxxxxxxxx", }, orientation = { default = "portrait", supported = { "portrait" } }, plugins = { ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, }

The following configuration in build.settings results in both AdMob and gameNetwork functioning properly

settings = { android = { versionCode = "3", usesPermissions = { "android.permission.INTERNET", }, googlePlayGamesAppId = "xxxxxxxxxxxxxx", }, orientation = { default = "portrait", supported = { "portrait" } }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, }

I am aware the above settings is contrary to what is stated in the API http://docs.coronalabs.com/plugin/gameNetwork-google/index.html . Could the Corona staff comment on this?

Can I get you to file a bug report on this please?  Make a project with as minimal code as possible that has the issue.  Include your config.lua and build.settings complete with any ID numbers you’re using.  It should be a .zip file (no other compression methods please).  Use the report a bug feature at the top of the page.  When you get the email back post the bug ID number here.

Thanks

Rob

Hi Rob,

Case number 35814

Hi,

Iam having the same issues…arghhh

Iam now unable to build any app that uses GGPS

A fix would be much appreciated very soon

As above if I remove

["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, },

and just use

["plugin.google.play.services"] = { publisherId = "com.coronalabs"

},

everything seems fine.

Hi bubblebobble, removing the CoronaProvider.gameNetwork.google from the plugins works for me, I have GGPS running fine after doing this. Did that work for you?

larrytkl, yes that works fine for me too.

Means I can update my app now.

Can I get you to file a bug report on this please?  Make a project with as minimal code as possible that has the issue.  Include your config.lua and build.settings complete with any ID numbers you’re using.  It should be a .zip file (no other compression methods please).  Use the report a bug feature at the top of the page.  When you get the email back post the bug ID number here.

Thanks

Rob

Hi Rob,

Case number 35814

Hi,

Iam having the same issues…arghhh

Iam now unable to build any app that uses GGPS

A fix would be much appreciated very soon

As above if I remove

["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, },

and just use

["plugin.google.play.services"] = { publisherId = "com.coronalabs"

},

everything seems fine.

Hi bubblebobble, removing the CoronaProvider.gameNetwork.google from the plugins works for me, I have GGPS running fine after doing this. Did that work for you?

larrytkl, yes that works fine for me too.

Means I can update my app now.