Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

google play game services crashing on production version!
Started by tameem50 Aug 02 2016 02:58 PM

- - - - -
11 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

tameem50

[GLOBAL: userInfoPane.html]
tameem50
  • Contributor

  • 100 posts
  • Corona SDK

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?

 



[TOPIC: post.html]
#2

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,728 posts
  • Enterprise

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



[TOPIC: post.html]
#3

tameem50

[GLOBAL: userInfoPane.html]
tameem50
  • Contributor

  • 100 posts
  • Corona SDK

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 :(



[TOPIC: post.html]
#4

tameem50

[GLOBAL: userInfoPane.html]
tameem50
  • Contributor

  • 100 posts
  • Corona SDK

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..



[TOPIC: post.html]
#5

tameem50

[GLOBAL: userInfoPane.html]
tameem50
  • Contributor

  • 100 posts
  • Corona SDK

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?



[TOPIC: post.html]
#6

Yoger Games

[GLOBAL: userInfoPane.html]
Yoger Games
  • Enthusiast

  • 95 posts
  • Corona SDK

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.  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" />
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?



[TOPIC: post.html]
#7

tameem50

[GLOBAL: userInfoPane.html]
tameem50
  • Contributor

  • 100 posts
  • Corona SDK

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.  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" />
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



[TOPIC: post.html]
#8

TandG

[GLOBAL: userInfoPane.html]
TandG
  • Contributor

  • 421 posts
  • Corona SDK

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? 



[TOPIC: post.html]
#9

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,728 posts
  • Enterprise

[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,308 posts
  • Corona Staff

We are looking into this!

 

Rob



[TOPIC: post.html]
#11

Ajay McCaleb

[GLOBAL: userInfoPane.html]
Ajay McCaleb
  • Contributor

  • 209 posts
  • Corona Staff

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

 

Thanks



[TOPIC: post.html]
#12

Yoger Games

[GLOBAL: userInfoPane.html]
Yoger Games
  • Enthusiast

  • 95 posts
  • Corona SDK

It works for me now. Thanks!




[topic_controls]
[/topic_controls]