google / play-unity-plugins

The Google Play Plugins for Unity provide C# APIs for accessing various Play services
Other
435 stars 110 forks source link

Crash at Android 13 #207

Open bibubibu opened 1 year ago

bibubibu commented 1 year ago

I find the similar issue but they are from different classes, PlayAssetDeliveryUnityWrapper. My plugin version is 1.8.1 and i use google's plugin to build an aab. When the app startup, it crashes. And i have been confirm that it's caused by Android 13 by test. How can i fix the issue?

02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] Throwing new exception 'No interface method getPackStates(Ljava/util/List;)Lcom/google/android/play/core/tasks/Task; in class Lcom/google/android/play/core/assetpacks/c; or its super classes (declaration of 'com.google.android.play.core.assetpacks.c' appears in /data/app/~~EPhUqNGbcBO7qSwwMW_Uhw==/com.xx.xxx-ppVHFW09J57OS-vJ3DN4ZA==/base.apk)' with unexpected pending exception: java.lang.NoSuchMethodError: No interface method getPackStates(Ljava/util/List;)Lcom/google/android/play/core/tasks/Task; in class Lcom/google/android/play/core/assetpacks/c; or its super classes (declaration of 'com.google.android.play.core.assetpacks.c' appears in /data/app/~~EPhUqNGbcBO7qSwwMW_Uhw==/com.xx.xxx-ppVHFW09J57OS-vJ3DN4ZA==/base.apk) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at void com.unity3d.player.a.a(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) (:-1) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at void com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackStates(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) (:-1) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at void com.unity3d.player.PlayAssetDeliveryUnityWrapper.getAssetPackState(java.lang.String, com.unity3d.player.IAssetPackManagerStatusQueryCallback) (:-1) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at boolean com.unity3d.player.UnityPlayer.nativeRender() (:-2) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) (:-1) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) (:-1) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (Looper.java:240) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at void android.os.Looper.loop() (Looper.java:351) 02-14 15:56:01.852 27110 31258 F 7yx.MagicEmpire: thread.cc:2475] at void com.unity3d.player.UnityPlayer$e.run() (:-1)

vcLS132 commented 1 year ago

Crashing on my device to on same android version. Were youable to resolve the crash?

blazejhanzel commented 1 year ago

Check this related issue: https://github.com/google/play-unity-plugins/issues/187 I wrote my workaround there, maybe it will help you also

vcLS132 commented 1 year ago

Check this related issue: #187 I wrote my workaround there, maybe it will help you also

Thanks, I'll try it.