Hello,
Since implementing the new Google Play Games plugin I’ve started getting multiple crash and error reports.
Here are the crashes from play developer console (app build compiled with 2018.3308):
java.lang.NullPointerException: at com.ansca.corona.CoronaActivity.getOverlayView (CoronaActivity.java:971) at plugin.gpgs.Connector$1.run (Connector.java:61) at android.os.Handler.handleCallback (Handler.java:733) at android.os.Handler.dispatchMessage (Handler.java:95) at android.os.Looper.loop (Looper.java:146) at android.app.ActivityThread.main (ActivityThread.java:5598) at java.lang.reflect.Method.invokeNative (Native Method) at java.lang.reflect.Method.invoke (Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1283) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1099) at dalvik.system.NativeStart.main (Native Method)
I get literally hundreds of these errors.
There are also problems with the ViewTreeObserver class after calling the login function.
Here’s the traceback from the gameanalytics:
1.0.6c | scenes.main | overlays.messagebox | \Clicker\gameServices\GPGS.lua:47: java.lang.IllegalStateException: This ViewTreeObserver is not alive, call getViewTreeObserver() again [C]: ? [C]: in function 'login' /Clicker\gameServices\GPGS.lua:47: in function 'login' /Clicker\gameServices\GameServices.lua:81: in function 'login' /Clicker\gameServices\GameServices.lua:102: in function 'listener' /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:210: in function 'method' /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function \</Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:190\>
GPGS.lua file:
Does anyone have any ideas how to fix these errors?