{
  "id": "unity/asset-bundle-version-mismatch",
  "signature": "ArgumentException: AssetBundle 'characters' cannot be loaded. The bundle version (2.1.0) does not match the expected version (2.0.0).",
  "signature_zh": "参数异常：无法加载资源包'characters'。包版本(2.1.0)与期望版本(2.0.0)不匹配。",
  "regex": "AssetBundle '\\w+' cannot be loaded\\. The bundle version \\([\\d\\.]+\\) does not match the expected version \\([\\d\\.]+\\)",
  "domain": "unity",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "AssetBundle was built with a different version identifier than the one expected by the application, causing a mismatch in serialization layout.",
  "root_cause_type": "generic",
  "root_cause_zh": "资源包使用与应用程序期望不同的版本标识符构建，导致序列化布局不匹配。",
  "versions": [
    {
      "version": "2020.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "2021.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "2022.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The version mismatch is due to a version string in the bundle metadata, not the Unity version. Rebuilding without updating the version string still causes mismatch.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "AssetBundles are binary files with checksums; manual editing corrupts the bundle and causes load failures.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "No public API exists to skip version validation; modifying internal code is unstable and unsupported.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure AssetBundle version is consistent by using a build script that writes the same version string. Example: AssetBundleBuild build = new AssetBundleBuild(); build.assetBundleName = \"characters\"; build.assetNames = assets; BuildPipeline.BuildAssetBundles(\"Assets/AssetBundles\", new[] { build }, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);",
      "success_rate": 0.95,
      "how": "Ensure AssetBundle version is consistent by using a build script that writes the same version string. Example: AssetBundleBuild build = new AssetBundleBuild(); build.assetBundleName = \"characters\"; build.assetNames = assets; BuildPipeline.BuildAssetBundles(\"Assets/AssetBundles\", new[] { build }, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);",
      "condition": "",
      "sources": []
    },
    {
      "action": "Clear the AssetBundle cache and force re-download: Caching.ClearCache(); then load the bundle from remote URL.",
      "success_rate": 0.8,
      "how": "Clear the AssetBundle cache and force re-download: Caching.ClearCache(); then load the bundle from remote URL.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use AssetBundleManifest to verify version before loading: manifest.GetAllAssetBundles() and compare version strings at runtime.",
      "success_rate": 0.85,
      "how": "Use AssetBundleManifest to verify version before loading: manifest.GetAllAssetBundles() and compare version strings at runtime.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Ensure AssetBundle version is consistent by using a build script that writes the same version string. Example: AssetBundleBuild build = new AssetBundleBuild(); build.assetBundleName = \"characters\"; build.assetNames = assets; BuildPipeline.BuildAssetBundles(\"Assets/AssetBundles\", new[] { build }, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);",
    "Clear the AssetBundle cache and force re-download: Caching.ClearCache(); then load the bundle from remote URL.",
    "Use AssetBundleManifest to verify version before loading: manifest.GetAllAssetBundles() and compare version strings at runtime."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Manual/AssetBundlesIntro.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-11-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}