{
  "id": "android/dexguard-obfuscation-missing-mapping",
  "signature": "DexGuard: Obfuscation failed: Unable to read mapping file: /path/to/mapping.txt",
  "signature_zh": "DexGuard：混淆失败：无法读取映射文件：/path/to/mapping.txt",
  "regex": "DexGuard: Obfuscation failed: Unable to read mapping file: .*mapping\\.txt",
  "domain": "android",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "DexGuard expects a previous mapping.txt file for incremental obfuscation, but the file is missing or path is incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "DexGuard 期望之前的 mapping.txt 文件用于增量混淆，但文件缺失或路径不正确。",
  "versions": [
    {
      "version": "DexGuard 9.3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "DexGuard 10.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AGP 8.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Gradle 8.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Setting `-dontobfuscate` in DexGuard config disables obfuscation entirely, which defeats the purpose of using DexGuard for security.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Copying a mapping.txt from a different build variant or version may cause class name conflicts and runtime crashes.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Clearing the entire build cache with `./gradlew clean` deletes all intermediate files, including mapping.txt, worsening the issue.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add `-applymapping /path/to/valid/mapping.txt` in DexGuard config with the correct path from a previous successful build, or remove the line if incremental obfuscation is not needed.",
      "success_rate": 0.85,
      "how": "Add `-applymapping /path/to/valid/mapping.txt` in DexGuard config with the correct path from a previous successful build, or remove the line if incremental obfuscation is not needed.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Run a full clean build: `./gradlew clean assembleRelease` without incremental mapping to generate a new mapping.txt file.",
      "success_rate": 0.9,
      "how": "Run a full clean build: `./gradlew clean assembleRelease` without incremental mapping to generate a new mapping.txt file.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Add `-applymapping /path/to/valid/mapping.txt` in DexGuard config with the correct path from a previous successful build, or remove the line if incremental obfuscation is not needed.",
    "Run a full clean build: `./gradlew clean assembleRelease` without incremental mapping to generate a new mapping.txt file."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.guardsquare.com/manual/dexguard/tools/retrace",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2024-01-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}