Hello,
Working on a Google Play Game Servie v2 (plugin.gpgs.v2).
The error happens while executing a Load Achievements method (https://docs.coronalabs.com/plugin/gpgs-v2/achievements/load.html):
local function loadAchievementslistener(event)
print("loadAchievementslistener:")
table.foreach(event,print)
end
local params = {
reload = true,
listener = loadAchievementslistener
}
gpgs.achievements.load( params )
07-29 00:46:54.603: W/AppOps(1607): Bad call: specified package com.google.android.play.games under uid 10174 but it is really 10147
07-29 00:46:54.603: W/AppOps(1607): java.lang.RuntimeException: here
07-29 00:46:54.603: W/AppOps(1607): at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1399)
07-29 00:46:54.603: W/AppOps(1607): at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1067)
07-29 00:46:54.603: W/AppOps(1607): at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)
07-29 00:46:54.603: W/AppOps(1607): at android.os.Binder.execTransact(Binder.java:569)
07-29 00:46:54.604: W/AppOps(1607): Bad call: specified package com.google.android.play.games under uid 10174 but it is really 10147
07-29 00:46:54.604: W/AppOps(1607): java.lang.RuntimeException: here
07-29 00:46:54.604: W/AppOps(1607): at com.android.server.AppOpsService.getOpsRawLocked(AppOpsService.java:1399)
07-29 00:46:54.604: W/AppOps(1607): at com.android.server.AppOpsService.checkPackage(AppOpsService.java:1067)
07-29 00:46:54.604: W/AppOps(1607): at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:169)
07-29 00:46:54.604: W/AppOps(1607): at android.os.Binder.execTransact(Binder.java:569)
07-29 00:46:54.609: D/AndroidRuntime(13424): Shutting down VM
07-29 00:46:54.609: E/AndroidRuntime(13424): FATAL EXCEPTION: main
07-29 00:46:54.609: E/AndroidRuntime(13424): Process: com.*, PID: 13424
07-29 00:46:54.609: E/AndroidRuntime(13424): lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String android.net.Uri.toString()’ on a null object reference
07-29 00:46:54.609: E/AndroidRuntime(13424): at plugin.gpgs.v2.Achievements$7.onComplete(Achievements.java:109)
07-29 00:46:54.609: E/AndroidRuntime(13424): at com.google.android.gms.tasks.zzj.run(com.google.android.gms:play-services-tasks@@17.2.0:4)
07-29 00:46:54.609: E/AndroidRuntime(13424): at android.os.Handler.handleCallback(Handler.java:754)
07-29 00:46:54.609: E/AndroidRuntime(13424): at android.os.Handler.dispatchMessage(Handler.java:95)
07-29 00:46:54.609: E/AndroidRuntime(13424): at android.os.Looper.loop(Looper.java:163)
07-29 00:46:54.609: E/AndroidRuntime(13424): at android.app.ActivityThread.main(ActivityThread.java:6388)
07-29 00:46:54.609: E/AndroidRuntime(13424): at java.lang.reflect.Method.invoke(Native Method)
07-29 00:46:54.609: E/AndroidRuntime(13424): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:930)
07-29 00:46:54.609: E/AndroidRuntime(13424): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:820)
The method Show Achievements works fine: https://docs.coronalabs.com/plugin/gpgs-v2/achievements/show.html
The Bug issue of this task here: https://github.com/coronalabs/corona/issues/267