8

I have released an alpha version of my app with Google Play services. However, I have encountered this error when I tested the app on a phone with Google Play services. I hadn't got this error during compilation or running the app on a phone with an out of date Google Play Service. I Googled this error and in stack overflow but it didn't give me much answer. If anyone have any idea, please help.

By the way, I didn't enable pro-guard, so that isn't a problem

Here is the bug report:

java.lang.IllegalStateException: A fatal developer error has occurred.
Check the logs for further information.
at com.google.android.gms.internal.jl$h.b(Unknown Source)
at com.google.android.gms.internal.jl$h.g(Unknown Source)
at com.google.android.gms.internal.jl$b.hy(Unknown Source)
at com.google.android.gms.internal.jl$a.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.app.ActivityThread.main(ActivityThread.java:5338)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)

By the way, I use LibGdx, and I used google play services for leader boards, a achievements. I have followed this tutorial but it didn't help me much. Thanks in advance

SatyaTNV
  • 4,137
  • 3
  • 15
  • 31
Fish
  • 1,689
  • 1
  • 18
  • 28
  • Your app seems to be obfuscated by ProGuard. Take a look at http://developer.android.com/tools/help/proguard.html#decoding to learn how to decode the bug report – antonio Mar 03 '15 at 13:10
  • It is possible the ProGuard is the source of your problems. I have, on several occasions, tried running an obfuscated form of my project that was created with ProGuard, only to find that it does not work unless it is ini its deobfuscated form. – DaveTheMinion Mar 03 '15 at 13:20
  • Have you got the proguard settings detailed here: http://developer.android.com/google/play-services/setup.html#Proguard Also show the code that causes this exception. – weston Mar 03 '15 at 14:09
  • Sorry Guys but I didn't Use proguard – Fish Mar 03 '15 at 16:49
  • http://stackoverflow.com/questions/16595225/initializing-games-client-in-android. <<-- Maybe it was a meta? Since no one has linked to this yet. – Eae Mar 31 '15 at 23:28
  • It's the google play services classes that are obfuscated by proguard. There's no trace of the developer's app package (unless they'e removed it). Does this mean that this is a bug in the play services framework? – iceman Oct 05 '15 at 11:23
  • 1
    Can you check whether your manifest has your play games`APP_ID`? Ref: http://stackoverflow.com/a/16599446/1773325 – iceman Oct 05 '15 at 11:26
  • @iceman, your suggestion was very close to what I did wrong. I posted an answer. – Fish Oct 05 '15 at 22:36

1 Answers1

1

I forgot to post the answer after I solved the problem several months ago!

The problem was an extra space in the ID of the leaderboard.

Supposed that my leaderboard ID is "as129sadf92349dsfaj".

I wrote "as129sadf92349dsfaj ".

So google play services gave me this error.

Fish
  • 1,689
  • 1
  • 18
  • 28