Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android NullPointerException in $Proxy0.equals

I've recently published a couple android games based in libgdx, both of them have reported an error I have no idea where to begin with debugging. This is the stacktrace.-

java.lang.NullPointerException: null result when primitive expected
at $Proxy0.equals(Native Method)
at com.google.android.gms.internal.dw$g.equals(Unknown Source)
at java.util.ArrayList.contains(ArrayList.java:342)
at com.google.android.gms.internal.dx.a(Unknown Source)
at com.google.android.gms.internal.dw$h.b(Unknown Source)
at com.google.android.gms.internal.dw$h.b(Unknown Source)
at com.google.android.gms.internal.dw$b.bR(Unknown Source)
at com.google.android.gms.internal.dw$a.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)

I know the problem is something related with Google Play Game Services, but can't figure out what can be causing it. In both cases, the android version seems to be 2.3.3. Anyone who faced the same issue?

like image 927
ssantos Avatar asked Mar 03 '14 10:03

ssantos


1 Answers

Try going on properties on your android project , and under the android tag check to see if your google library is there . If it is there try removing it and add it again . This is how i solved this problem and worked for me . (i still get this error sometimes when i start the eclipse ). Good luck !

like image 109
GuessWhat Avatar answered Sep 28 '22 18:09

GuessWhat