{
  "id": "android/layout-inflate-constraintlayout-parallel-constraint",
  "signature": "android.view.InflateException: Binary XML file line #XX: Binary XML file line #XX: Error inflating class androidx.constraintlayout.widget.ConstraintLayout. Cause: java.lang.IllegalArgumentException: The given output must be a different layout from the input. Parallel constraints not supported.",
  "signature_zh": "android.view.InflateException：二进制 XML 文件第 XX 行：二进制 XML 文件第 XX 行：膨胀类 androidx.constraintlayout.widget.ConstraintLayout 时出错。原因：java.lang.IllegalArgumentException：给定的输出必须是与输入不同的布局。不支持并行约束。",
  "regex": "InflateException.*Error inflating class androidx\\.constraintlayout\\.widget\\.ConstraintLayout.*Parallel constraints not supported",
  "domain": "android",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "ConstraintLayout XML contains conflicting or parallel constraints (e.g., both `layout_constraintLeft_toLeftOf` and `layout_constraintRight_toRightOf` on the same view without proper chain or bias) that the layout parser cannot resolve during inflation.",
  "root_cause_type": "generic",
  "root_cause_zh": "ConstraintLayout XML 包含冲突或并行的约束（例如，同一视图上同时使用 `layout_constraintLeft_toLeftOf` 和 `layout_constraintRight_toRightOf`，而没有正确的链或偏差），导致布局解析器在膨胀时无法解决。",
  "versions": [
    {
      "version": "ConstraintLayout 2.1.4",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "ConstraintLayout 2.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "AndroidX 1.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The Layout Editor often generates parallel constraints automatically when dragging; manual removal without understanding the conflict can reintroduce the same error.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is a validation issue in the XML, not a library bug; downgrading may hide the symptom but the underlying constraint conflict remains and can cause runtime crashes.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "In your XML layout, identify the view causing the error and remove one of the parallel constraints. For example, if a TextView has both `app:layout_constraintLeft_toLeftOf=\"parent\"` and `app:layout_constraintRight_toRightOf=\"parent\"`, replace them with `app:layout_constraintStart_toStartOf=\"parent\"` and `app:layout_constraintEnd_toEndOf=\"parent\"` to create a centered horizontal constraint, or use a chain with `app:layout_constraintHorizontal_chainStyle=\"packed\"`.",
      "success_rate": 0.9,
      "how": "In your XML layout, identify the view causing the error and remove one of the parallel constraints. For example, if a TextView has both `app:layout_constraintLeft_toLeftOf=\"parent\"` and `app:layout_constraintRight_toRightOf=\"parent\"`, replace them with `app:layout_constraintStart_toStartOf=\"parent\"` and `app:layout_constraintEnd_toEndOf=\"parent\"` to create a centered horizontal constraint, or use a chain with `app:layout_constraintHorizontal_chainStyle=\"packed\"`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Wrap the conflicting view in a nested ConstraintLayout or use a different layout container like LinearLayout to avoid parallel constraints entirely.",
      "success_rate": 0.85,
      "how": "Wrap the conflicting view in a nested ConstraintLayout or use a different layout container like LinearLayout to avoid parallel constraints entirely.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "In your XML layout, identify the view causing the error and remove one of the parallel constraints. For example, if a TextView has both `app:layout_constraintLeft_toLeftOf=\"parent\"` and `app:layout_constraintRight_toRightOf=\"parent\"`, replace them with `app:layout_constraintStart_toStartOf=\"parent\"` and `app:layout_constraintEnd_toEndOf=\"parent\"` to create a centered horizontal constraint, or use a chain with `app:layout_constraintHorizontal_chainStyle=\"packed\"`.",
    "Wrap the conflicting view in a nested ConstraintLayout or use a different layout container like LinearLayout to avoid parallel constraints entirely."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}