{
  "id": "unity/il2cpp-bad-image-format",
  "signature": "IL2CPP error: BadImageFormatException: Could not resolve field token 0x04000001",
  "signature_zh": "IL2CPP 错误: BadImageFormatException: 无法解析字段令牌 0x04000001",
  "regex": "IL2CPP error: BadImageFormatException: Could not resolve field token 0x[0-9A-Fa-f]+",
  "domain": "unity",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "A managed assembly contains a reference to a field that does not exist in the compiled IL, often due to partial recompilation or mismatched assembly versions.",
  "root_cause_type": "generic",
  "root_cause_zh": "托管程序集包含对编译 IL 中不存在的字段的引用，通常是由于部分重新编译或程序集版本不匹配。",
  "versions": [
    {
      "version": "Unity 2022.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2023.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 6000.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The issue is in the managed assemblies, not in generated data; a full rebuild is needed.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Code stripping removes unused code but does not affect broken metadata references.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Perform a full rebuild: delete the Library and Temp folders, then recompile the project from scratch.",
      "success_rate": 0.85,
      "how": "Perform a full rebuild: delete the Library and Temp folders, then recompile the project from scratch.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Ensure all custom DLLs are compiled with the same .NET version and API compatibility level as the project.",
      "success_rate": 0.9,
      "how": "Ensure all custom DLLs are compiled with the same .NET version and API compatibility level as the project.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Perform a full rebuild: delete the Library and Temp folders, then recompile the project from scratch.",
    "Ensure all custom DLLs are compiled with the same .NET version and API compatibility level as the project."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Manual/IL2CPP-ErrorCodes.html",
  "official_doc_section": null,
  "error_code": "0x04000001",
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.87,
  "resolvable": "true",
  "first_seen": "2024-09-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}