{
  "id": "android/manifest-merger-failed-attribute-applicationicon",
  "signature": "Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:2:5-36 is also present at AndroidManifest.xml:8:5-41",
  "signature_zh": "清单合并失败：AndroidManifest.xml:2:5-36 中的属性 application@icon 值=(@mipmap/ic_launcher) 也出现在 AndroidManifest.xml:8:5-41",
  "regex": "Manifest merger failed : Attribute application@",
  "domain": "android",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The same attribute (e.g., android:icon) is defined in multiple merged manifest files with conflicting values, causing a merge conflict.",
  "root_cause_type": "generic",
  "root_cause_zh": "同一属性（例如 android:icon）在多个合并的清单文件中定义且值冲突，导致合并冲突。",
  "versions": [
    {
      "version": "AGP 7.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Android Studio 2022.1+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Removing may cause missing icon if it's required; better to use tools:replace to override.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the manifests come from libraries, you may not have direct control over them.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "tools:remove deletes the attribute entirely, which may not be desired.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add tools:replace=\"android:icon\" to the <application> tag in your main manifest to override library values",
      "success_rate": 0.95,
      "how": "Add tools:replace=\"android:icon\" to the <application> tag in your main manifest to override library values",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use tools:node=\"merge\" with tools:replace to handle multiple conflicting attributes",
      "success_rate": 0.9,
      "how": "Use tools:node=\"merge\" with tools:replace to handle multiple conflicting attributes",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add tools:remove to exclude a conflicting attribute from a library manifest",
      "success_rate": 0.85,
      "how": "Add tools:remove to exclude a conflicting attribute from a library manifest",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在主清单的 <application> 标签中添加 tools:replace=\"android:icon\" 以覆盖库的值",
    "使用 tools:node=\"merge\" 配合 tools:replace 处理多个冲突属性",
    "添加 tools:remove 以排除来自库清单的冲突属性"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.android.com/studio/build/manifest-merge",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}