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?