google / google/play-appbundle-unity
Play Asset Delivery Update Error Due to Asset Pack Name Changes
- Dominant language
- C#
- Stars
- 10
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
We are using Unity Addressables and Play Asset Delivery (PAD) together. Each Addressable group is packed into a separate asset pack, with the asset pack name derived from the Addressable group bundle name (including its hash).
Whenever an Addressable bundle changes, its name (and corresponding asset pack name) also changes. This causes some asset packs to be removed while new ones are added. When attempting to update the app in this scenario, Google Play Store fails with an error.
**Issue:**
From the logs, we observed that Google Play Store is looking for old asset packs from the installed version instead of the new asset packs from the updated version. This leads to a failure in retrieving the necessary asset packs and prevents the update from proceeding.
**Workaround:**
Clearing the Google Play Store app data resolves the issue. However, this is not an acceptable long-term solution for users, as they should not be required to manually clear data to update an app.
Installed version asset pack names:
car_assets_all_7cef6e72f0e8e0ba0084fd2197eec242
scenes_scenes_all_34be52c2d203b1944a630c52ba2b5fd9
Target version asset pack names:
scenes_scenes_all_ed7d7bc8471926d8e5c807e1d50e0bf5
car_assets_all_d04782a131ce395acf8e05c95d3a9e7d
**Error Log:**
2025/02/12 16:41:52.046 2409 2441 Info Finsky [1046] ngm.l(30): Requesting installation of asset modules: [car_assets_all_7cef6e72f0e8e0ba0084fd2197eec242, scenes_scenes_all_34be52c2d203b1944a630c52ba2b5fd9]
2025/02/12 16:41:52.165 2409 2658 Error Finsky [1138] ngo.a(410): AssetModuleService gRPC failure requesting asset module info
2025/02/12 16:41:52.165 2409 2658 Error Finsky com.google.android.finsky.assetmoduleserviceutils.AssetModuleException: Request to PGS failed because all packs are unavailable.
**Possible Cause:**
It appears that Google Play Store is still expecting asset packs from the installed version instead of recognizing the new asset packs in the update. Since the old asset packs do not exist in the updated version, the update fails.
**Expected Behavior:**
During an update, Google Play should correctly reference the new asset packs from the target version, rather than searching for asset packs that no longer exist.
**Steps to Reproduce:**
Use Unity Addressables and Play Asset Delivery.
Pack each Addressable group into a separate asset pack.
Upload this version to Google Play and install the game.
Modify some assets, causing a change in Addressable bundle names (which results in different asset pack names).
Upload the updated version to Google Play.
Try updating the app from the Play Store.
The update will fail, as Play Store tries to find old asset packs that no longer exist in the new version.
Impact:
This issue prevents users from updating the app when Addressable bundle names change.
**Request:**
Please investigate why Google Play Store is looking for old asset packs instead of recognizing the updated ones. If this is a bug, please provide a workaround or a fix to ensure smooth updates.
Contributor guide
Assessment
This issue has not been assessed yet.