Search Issue Tracker

Fixed

Fixed in 2023.1.0a18

Votes

0

Found in

2023.1.0a5

Issue ID

UUM-10802

Regression

Yes

Crash when using Unity built in Play Asset Delivery integration together with Play Core libraries 2.0.0+

--

-

Issue reported by Google

 

Using Unity's built-in Play Asset Delivery integration  together with Play Core libraries 2.0.0+ ([https://developer.android.com/reference/com/google/android/play/core/release-notes]) error appears:

thread.cc:2372] 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/AssetPackManager; or its super classes (declaration of 'com.google.android.play.core.assetpacks.AssetPackManager' appears in base.apk!classes2.dex)' 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/AssetPackManager; or its super classes (declaration of 'com.google.android.play.core.assetpacks.AssetPackManager' appears in base.apk!classes2.dex) thread.cc:2372] at void com.unity3d.player.AssetPackManagerWrapper.getAssetPackStates(java.lang.String[], com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1) thread.cc:2372] at void com.unity3d.player.AssetPackManagerWrapper.getAssetPackState(java.lang.String, com.unity3d.player.IAssetPackManagerStatusQueryCallback) ((null):-1) thread.cc:2372] at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2) thread.cc:2372] at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1) thread.cc:2372] at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1) thread.cc:2372] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) thread.cc:2372] at boolean android.os.Looper.loopOnce(android.os.Looper, long, int) (Looper.java:226) thread.cc:2372] at void android.os.Looper.loop() (Looper.java:313) thread.cc:2372] at void com.unity3d.player.UnityPlayer$e.run() ((null):-1) thread.cc:2372]

 

Issue described here: [https://github.com/google/play-unity-plugins/issues/187]

 

The root cause is that in the latest versions of PlayCore APIs included breaking changes to the Task system, which would require a
migration process ([https://developer.android.com/guide/playcore#common_migration_steps]) on the wrapper side. Since Unity's own AssetPackManagerWrapper implementation is still based on pre-2.0.0 Play Core APIs, we would see NoSuchMethodErrors on all the Task related methods."

  1. Resolution Note (fix version 2023.1.0a18):

    Tested basic and extended usage of Play Asset Delivery 2.0+ with several devices, on a fresh installation and when the app has been run a few times. The fix works and the crash is no longer present

Comments (9)

  1. JayakumarSivasankar

    Jan 02, 2024 05:13

    Facing the same issue in 2023.2.4f1 and 2022.3.8f1

    Any resolution found? Please assist.

  2. roointan

    Oct 30, 2023 23:25

    I'm Using Unity 2022.3.12f1 and app was crashing on start. Updating Google Play Review to version 1.8.1 fixed the issue for me.

  3. nayakshasvat

    Oct 13, 2023 18:48

    @JENZO83 do you find any solution ?

  4. Jenzo83

    Oct 06, 2023 07:02

    Please fix this for Unity 2021 LTS

    I got it to work on 2022.3.10 but other issues prevent us for using 2022.

  5. JacobSimpsonUnity

    Aug 01, 2023 13:08

    Hey,

    If you're still experiencing this issue, please visit this discussion thread to provide some more information: https://forum.unity.com/threads/play-asset-delivery-issue-discussion.1467866/

  6. JeffTheCampbell

    Jul 26, 2023 17:55

    This is really broken as it still fails on the purportedly fix version of 2023.1.6f1.

  7. JeffTheCampbell

    Jul 26, 2023 16:29

    This issue still occurs for the older LTS version 2022.3.5f1, please backport this fix

  8. ynka

    May 17, 2023 11:34

    Any news regarding Unity 2021 LTS?

  9. Aquabanga

    Nov 16, 2022 12:48

    This issue is also affecting the latest Unity Editor LTS version (i.e. 2021.3.x).
    Is a fix for Unity 2021 LTS in the pipeline?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.