google play game services crashing on production version!

when I submitted my leaderboards / app my app is crashing when I try to launch the leaderboard…

I sent the crash report to myself and I’m getting this?

java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4242000 but found 0. 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" /\> at com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source) at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source) at CoronaProvider.gameNetwork.google.GameHelper.beginUserInitiatedSignIn(GameHelper.java:348) at CoronaProvider.gameNetwork.google.LuaLoader$3.run(LuaLoader.java:192) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

in my build.settings i have

 plugins = { ["plugin.bit"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, },

 -- -- Android Section -- android = { googlePlayGamesAppId = "111111111", -- my number usesPermissions = { "android.permission.INTERNET", }, },

any help please?

are you gameNetwork.init(“google”) before calling leaderboards, also i would double check your app id (i know your 11111111 is just a substitute.)

yes i am… and i’ve double checked it several times… this was working great until i published the leaderboards :frowning:

this is behaving really odd…

 if e.type == "applicationStart" then print("i startedz!!") local function meh(e) print("init called") end gameNetwork.init("google", meh) 

“i startedz!!” is being printed, but the callback for gamenetwork init is not being called on my device…  what is going on here…

the only thing i can think of is im building it from a different computer.  i am using the same keystore though…  i was able to update my game from this computer using that keystore so it must be legit?

I started to see this issue last night (21:00 CEST). I’m not using leaderboards at all. My backtrace looks similar:

08-02 22:49:34.069 19928 19961 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground() 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:309) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.&nbsp; Expected 4242000 but found 0.&nbsp; You must have the following declaration within the \<application\> element: &nbsp; &nbsp; \<meta-data android:name="com.google.android.gms.version" android:value="@integer/google\_play\_services\_version" /\> 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.common.GooglePlayServicesUtil.m(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.ads.identifier.AdvertisingIdClient.g(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at plugin.kidoz.CoronaBeacon$1$1.doInBackground(CoronaBeacon.java:85) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at plugin.kidoz.CoronaBeacon$1$1.doInBackground(CoronaBeacon.java:78) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:295) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: ... 4 more

My guess it’s an issue with the build process?

i think youre right because i created an empty project that does that just tries to call gameNetwork.init(“google”, callback) and the callback is never called

I just did a new build today and this issue magically appeared. A build from a few days ago works perfectly however… 

Have the GameNetwork /  Google play services plugin been updated recently by any chance? 

This is being worked on
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/5695759–plugin-turn-based-multiplayer-and-ios-support-fo

We are looking into this!

Rob

Can you give it another try? We fixed something on the server. It could take a little bit to propagate through the servers.

 

Thanks

It works for me now. Thanks!

are you gameNetwork.init(“google”) before calling leaderboards, also i would double check your app id (i know your 11111111 is just a substitute.)

yes i am… and i’ve double checked it several times… this was working great until i published the leaderboards :frowning:

this is behaving really odd…

 if e.type == "applicationStart" then print("i startedz!!") local function meh(e) print("init called") end gameNetwork.init("google", meh) 

“i startedz!!” is being printed, but the callback for gamenetwork init is not being called on my device…  what is going on here…

the only thing i can think of is im building it from a different computer.  i am using the same keystore though…  i was able to update my game from this computer using that keystore so it must be legit?

I started to see this issue last night (21:00 CEST). I’m not using leaderboards at all. My backtrace looks similar:

08-02 22:49:34.069 19928 19961 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground() 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:309) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.&nbsp; Expected 4242000 but found 0.&nbsp; You must have the following declaration within the \<application\> element: &nbsp; &nbsp; \<meta-data android:name="com.google.android.gms.version" android:value="@integer/google\_play\_services\_version" /\> 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.common.GooglePlayServicesUtil.m(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.ads.identifier.AdvertisingIdClient.g(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at plugin.kidoz.CoronaBeacon$1$1.doInBackground(CoronaBeacon.java:85) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at plugin.kidoz.CoronaBeacon$1$1.doInBackground(CoronaBeacon.java:78) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:295) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 08-02 22:49:34.069 19928 19961 E AndroidRuntime: ... 4 more

My guess it’s an issue with the build process?

i think youre right because i created an empty project that does that just tries to call gameNetwork.init(“google”, callback) and the callback is never called

I just did a new build today and this issue magically appeared. A build from a few days ago works perfectly however… 

Have the GameNetwork /  Google play services plugin been updated recently by any chance? 

This is being worked on
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/5695759–plugin-turn-based-multiplayer-and-ios-support-fo