Google Analytics error

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.

is it solved?

because i get similiar runtime also when i use plugin.google.play.services 

ERROR: Runtime error I/Corona ( 4891): /Users/jcb/Plugin/android/../shared/plugin\_gameanalytics.lua:762: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4242000 but found 9683000. You must have the following declaration within the \<application\> element: \<meta-data android:name="com.google.android.gms.version" android:value="@integer/google\_play\_services\_version" /\> I/Corona ( 4891): Java Stack Trace: I/Corona ( 4891): com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source) I/Corona ( 4891): com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source) I/Corona ( 4891): plugin.advertisingId.LuaLoader.isTrackingEnabled(LuaLoader.java:77) I/Corona ( 4891): plugin.advertisingId.LuaLoader$IsTrackingEnabledWrapper.invoke(LuaLoader.java:109) I/Corona ( 4891): com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) I/Corona ( 4891): com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:381) I/Corona ( 4891): com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:378) I/Corona ( 4891): [Lua::RuntimeDispatchEvent()] WARNING: This function is deprecated. Use Lua::DispatchRuntimeEvent() instead. I/Corona ( 4891): false

Yes, plugin dependencies are in place. See the following post for details and basically everything else you need to know:

https://coronalabs.com/blog/2016/12/14/android-plugin-dependency-update/

Best regards,

Brent