{
  "id": "unity/il2cpp-codegen-managed-backend-unavailable",
  "signature": "IL2CPP error: Managed/UnityEngine.dll is not available for codegen. This can happen if the IL2CPP backend is missing or corrupted.",
  "signature_zh": "IL2CPP 错误：Managed/UnityEngine.dll 不可用于代码生成。这可能是因为 IL2CPP 后端缺失或损坏。",
  "regex": "IL2CPP error: Managed/UnityEngine\\.dll is not available for codegen\\.",
  "domain": "unity",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The IL2CPP code generation backend cannot locate the managed UnityEngine.dll, often due to incomplete installation or corruption of Unity's IL2CPP support package.",
  "root_cause_type": "generic",
  "root_cause_zh": "IL2CPP 代码生成后端无法找到托管的 UnityEngine.dll，通常是由于 Unity 的 IL2CPP 支持包安装不完整或损坏。",
  "versions": [
    {
      "version": "Unity 2021.3.0f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2022.3.0f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2023.2.0f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2024.1.0b1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reimport all assets via Assets -> Reimport All",
      "why_fails": "Reimporting assets does not repair the IL2CPP backend installation; it only refreshes asset metadata.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Delete Library folder and restart Unity",
      "why_fails": "Deleting Library removes cached data but does not fix missing IL2CPP components in the Unity installation.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Switch to Mono scripting backend and back to IL2CPP",
      "why_fails": "This may trigger a rebuild but does not address underlying corruption of the IL2CPP package.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Reinstall the IL2CPP package via Unity Hub: Open Unity Hub, select the project's Unity version, click 'Manage Modules', ensure 'Windows Build Support (IL2CPP)' or equivalent is checked, then apply changes.",
      "success_rate": 0.85,
      "how": "Reinstall the IL2CPP package via Unity Hub: Open Unity Hub, select the project's Unity version, click 'Manage Modules', ensure 'Windows Build Support (IL2CPP)' or equivalent is checked, then apply changes.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually repair Unity installation by running the Unity installer's repair option: Uninstall Unity version via Control Panel, then reinstall from Unity Hub with IL2CPP support included.",
      "success_rate": 0.9,
      "how": "Manually repair Unity installation by running the Unity installer's repair option: Uninstall Unity version via Control Panel, then reinstall from Unity Hub with IL2CPP support included.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Reinstall the IL2CPP package via Unity Hub: Open Unity Hub, select the project's Unity version, click 'Manage Modules', ensure 'Windows Build Support (IL2CPP)' or equivalent is checked, then apply changes.",
    "Manually repair Unity installation by running the Unity installer's repair option: Uninstall Unity version via Control Panel, then reinstall from Unity Hub with IL2CPP support included."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/2023.2/Documentation/Manual/IL2CPP.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2023-06-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}