# UnityEngine.AddressableAssets：初始化失败：无法从路径 'Library/com.unity.addressables/StreamingAssets/aa/catalog.json' 加载内容目录

- **ID:** `unity/addressables-catalog-load-failure`
- **领域:** unity
- **类别:** io_error
- **验证级别:** ai_generated
- **修复率:** 87%

## 根因

Addressables 内容目录文件缺失、损坏或未针对当前平台构建，导致运行时无法加载资源。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Unity 2022.3 | active | — | — |
| Unity 2023.1 | active | — | — |
| Addressables 1.21.19 | active | — | — |

## 解决方案

1. ```
   Rebuild the Addressables content: Open Window > Asset Management > Addressables > Groups, click 'Build > New Build > Default Build Script'. Then re-run the player build.
   ```
2. ```
   Ensure the catalog is included in the build: In Addressables settings, set 'Build Remote Catalog' to false for local builds, or verify the remote URL is reachable.
   ```
3. ```
   Manually load the catalog at runtime using `Addressables.LoadContentCatalogAsync(catalogPath)` with a fallback path.
   ```

## 无效尝试

- **** — Manually copying the catalog file from another build doesn't account for platform-specific differences in asset bundles. (70% 失败率)
- **** — Deleting the Library folder and rebuilding sometimes corrupts the catalog if the build settings are misconfigured. (40% 失败率)
- **** — Changing the catalog path in code without rebuilding the content leads to a mismatch. (60% 失败率)
