Search Issue Tracker


Fixed in 2022.3.16f1, 2023.3.0a19



Found in



Issue ID




[Asset Bundles] [Android] BuildPlayerOptions.assetBundleManifestPath strips classes when building



Reproduction steps:
1. Open the attached project "ReproProj"
2. In the Editor menu bar click UNITY BUG > Build Asset Bundles
3. Click UNITY BUG > Build Player menu and create a folder where the gradle project will be built
4. Open the gradle project with Android Studio and select the Android Studio suggested SDK
5. Select your test Device and build the project
6. Observe the Player

Expected result: The game board is seen
Actual result: The player is mostly black and no game board is seen

Reproducible with: 2022.3.8f1, 2023.3.0a3
Could not test with: 2021.3.30f1, 2023.1.10f1, 2023.2.0b6 (Please specify a namespace for the generated R and BuildConfig classes via android.namespace in the module's build.gradle file)

Testing environment: Windows 10 Enterprise 21H2

Reproducible on:
VLNQA00332, Samsung Galaxy XCover4 (SM-G390F), Android 9, CPU: Exynos 7 Quad 7570, GPU: Mali-T720
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76

Not reproducible on: No other environment tested

- Workaround for this issue:

# In the Project window search for BlockFactory.cs, uncomment line 10 (which is [RequireDerived])
# Re-build the project (UNITY BUG/Build Player menu item)
# Run on device
# Notice that there is a game board at launch since the prefab was loaded successfully

  1. Resolution Note (fix version 2023.3.0a19):

    Fixed an issue where setting AppendHashToAssetBundleName to true would sometimes cause code that should be preserved to be stripped

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.