unity
config_error
ai_generated
true
UnityEngine.AddressableAssets: Initialization failed: Content catalog hash mismatch. Expected 'abc123', got 'def456'.
ID: unity/addressables-catalog-hash-mismatch
85%Fix Rate
82%Confidence
1Evidence
2023-11-05First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 1.21.17 | active | — | — | — |
| 1.22.0-pre.2 | active | — | — | — |
Root Cause
The local addressables content catalog hash does not match the remote catalog hash, indicating a stale or corrupted local cache.
generic中文
本地可寻址内容目录哈希与远程目录哈希不匹配,表示本地缓存已过时或损坏。
Official Documentation
https://docs.unity3d.com/Packages/[email protected]/manual/InitializeAsync.htmlWorkarounds
-
92% success Clear the Addressables cache at runtime: `Caching.ClearCache(); Addressables.InitializeAsync();`
Clear the Addressables cache at runtime: `Caching.ClearCache(); Addressables.InitializeAsync();`
-
88% success In the Editor, go to Windows > Asset Management > Addressables > Settings and click 'Clean Build' > 'All' to rebuild both local and remote catalogs.
In the Editor, go to Windows > Asset Management > Addressables > Settings and click 'Clean Build' > 'All' to rebuild both local and remote catalogs.
-
85% success Manually delete the catalog cache folder at `{persistentDataPath}/com.unity.addressables/` then reinitialize.
Manually delete the catalog cache folder at `{persistentDataPath}/com.unity.addressables/` then reinitialize.
中文步骤
Clear the Addressables cache at runtime: `Caching.ClearCache(); Addressables.InitializeAsync();`
In the Editor, go to Windows > Asset Management > Addressables > Settings and click 'Clean Build' > 'All' to rebuild both local and remote catalogs.
Manually delete the catalog cache folder at `{persistentDataPath}/com.unity.addressables/` then reinitialize.
Dead Ends
Common approaches that don't work:
-
90% fail
The hash mismatch is between local and remote catalogs; deleting settings removes the entire configuration, not just the cache.
-
95% fail
Addressables uses its own cache in Application.persistentDataPath, not the browser cache; clearing browser cache has no effect.
-
60% fail
Reimporting builds a new local catalog but doesn't update the remote catalog; the mismatch persists if remote hasn't been rebuilt.