Google Analytics error

I’m trying to find out what this error means. There is a good chance we are going to need a bug report. If I can go ahead and get you to submit one that would be great.

Please put together a sample project that demonstrates the issue. It needs to have a main.lua, config.lua and build.settings file and any assets to build and run the project. Put that in a zip file and use the Report a bug link at the top of the page.

Thanks

Rob

I submitted the bug.

Did you get the email with the CaseID?

Hi Rob.

Case 45530.

Dear Team,
have any news?

Its assigned to an Engineer but we don’t have a solution yet. It’s a complex problem to solve.

I’m getting this same error on Android (Corona 2866), but mine seems to be related to OneSignal. If I comment out the call to initialise OneSignal the problem goes away, but if I leave it in it fails.

Is this broader than GA? If I remove GA will it help?

Here’s my plugins…

plugins = { ["plugin.gameanalytics"] = { publisherId = "com.gameanalytics", },         ["plugin.OneSignal"] =         {             publisherId = "com.onesignal",         },         ["plugin.advertisingId"] =         {             publisherId = "com.coronalabs"         },         ["CoronaProvider.native.popup.social"] =         {             publisherId = "com.coronalabs"         },         ["plugin.notifications"] =         {             publisherId = "com.coronalabs"         },         ["plugin.googleAnalytics"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, android=true, }         },         ["CoronaProvider.analytics.flurry"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, android=true }         },         ["CoronaProvider.gameNetwork.google"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { android=true }         }, },

I removed Google Analytics and the problem went away.

The OneSignal SDK depends on Google Play services (GMS) but it can use either version 8487000 or 4242000. It does not include GMS itself so it relies on another plugin to include it. The GMS methods that OneSignal accesses (as well as some other plugins) requires that the follow meta-data tag to be present.

\<meta-data android:name="com.google.android.gms.version" android:value="@integer/google\_play\_services\_version" /\>

However the issue is not all plugins that include GCM include this AndroidManifest.xml entry as they should. plugin.googleAnalytics should add this manifest however there would have to be something in Corona to manage the merging of the version to use the higher value to match the Java classes themselves.

Is there any update to this? I’m also having this issue. This prevents my game from using Google Play Game Services. The odd thing is that sometimes it works and sometimes it doesn’t. It seems to be random.

The only way to completely resolve this for now is to disable the Google Analytics plugin. A better solution would be appreciated. Thanks!

Include the AdMob plugin. That will include the Google Play Services library.

Rob,

These are the plugins I’m using. 

plugins = { --[[["plugin.googleAnalytics"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, } },]] ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, ["plugin.gamecircle"] = { publisherId = "COM\_INNOVATIVELEISURE", supportedPlatforms = { ["android-kindle"] = true }, }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true } }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android-kindle"]=true }, }, },

Commenting out the Analytics plugin like I have done above makes Google Play Game Services work correctly. Are you saying I can keep Analytics if I include the Admob plugin?

Thanks,

George

I can’t say for certain, but Its worth giving it a try.

The problem is rooted in the fact that many of the Android plugins want a different version of Google Play’s library. Some plugins include it, others don’t.

I’m hoping that including it will solve your problem.

Rob

Hey Rob,

No, including the Admob plugin doesn’t help.

I unpacked the APK generated by Corona and the AndroidManifest.xml file specifies this:

\<meta-data android:name="com.google.android.gms.version" android:value="4242000"/\>

Why is that? Google recommends that it should be set to this:

\<meta-data android:name="com.google.android.gms.version" android:value="@integer/google\_play\_services\_version" /\>

Is this something that could be fixed?

Thanks,

George

Bump?

Is there any update on this?

The ‘@integer/google_play_services_version’ value come from an xml file included with the Google Play services library. Google recommends this instead of entering in a value manually. However at build time this value gets substituted in so if you extract one from an APK it will always be a number.

I am facing the same issue. I think this is worth a mention as a blog post on the compatibility issue.

https://forums.coronalabs.com/topic/63174-onesignal-issue-for-android/

Hello! 

I’m getting the same problem: https://drive.google.com/file/d/0Bx87G87G1O_4MEdLb1ZxZWVJUmc/view

My plugin’s section on settings.build:

plugins = &nbsp; &nbsp; { &nbsp; &nbsp; -- ADS &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.google.play.services"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; -- Compartir &nbsp; &nbsp; &nbsp; &nbsp; ["CoronaProvider.native.popup.social"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; -- Copia/Pega &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.pasteboard"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; -- Google Play Games Services &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.gpgs"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp; },&nbsp; &nbsp; },

By now, I’m going to try it with out ads (removing “plugin.google.play.services” plugin and all ads related features), but…

Is it any way to have both GPGS and ads on my app?

To build, I’m using: 

Corona Simulator

Version 2016.2992 (2016.11.10) 

Thank you!

Hi everyone,

The fix for this and several other plugin incompatibility issues should be imminent. On October 5 2016, we announced that we’d be introducing dependency plugins on Android to address incompatibility issues like this one. Here’s the blog post for more details: https://coronalabs.com/blog/2016/10/05/android-plugin-dependencies-update/

We’ve had some speed bumps along the way since this announcement, but we’re finalizing the last bits to ship this as we speak. Stay tuned.