Search Issue Tracker
By Design
Votes
5
Found in
2022.3.34f1
Issue ID
UUM-74037
Regression
No
[2022.3 only][Android] Asset Packs fail to load in the Player when the built Project uses Play Asset Delivery
How to reproduce:
1. Open the attached “PADTest.zip” project
2. Build the Gradle project via the custom button in the toolbar (PADTest → “Build Gradle Project - asset packs”)
3. Open the built Gradle project in Android Studio
4. Connect an Android device and Run the Gradle Project
5. Observe the Logcat console
Expected result: “Found expected StreamingAssets sample file” message is thrown in the Logcat
Actual result: “StreamingAssets file not found…” error is being thrown in the Logcat
Reproducible with: 2022.3.34f1
Couldn’t test with: 2021.3.39f1 (“Unsupported class file major version 61” error in Android Studio), 6000.0.7f1 (“The project is using an incompatible version (AGP 8.3.0) of the Android Gradle plugin.” error in Android Studio)
Reproducible on: Windows 11, macOS 14.4.1 (M1) - user’s
Not reproducible on: No other environment tested
Notes:
- This additional error appears in the Logcat: “AssetPackManager : Could not sync active asset packs. com.google.android.play.core.assetpacks.AssetPackException: -5: Asset Pack Download Error(-5): The Asset Delivery API is not available. (https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackErrorCode.html#API_NOT_AVAILABLE )”
- While reproducing the issue this device was used:
VLNQA00517, Oneplus OnePlus 10 Pro 5G (NE2213), Android 12, CPU: Snapdragon 8 Gen 1 (SM8450), GPU: Adreno (TM) 730
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
When deploying/running AAB from Android Studio it is required to use "APK from App Bundle" setting (https://developer.android.com/guide/app-bundle/test#deploy-using-studio). Bu default Android Studio deploys base APK only.