{
  "id": "flutter/sdk-constraint-violation",
  "signature": "The current Dart SDK version does not satisfy the constraint: because your_project depends on package_a ^2.0.0 which requires SDK version >=3.5.0 <4.0.0, but your current SDK is 3.4.0",
  "signature_zh": "当前Dart SDK版本不满足约束：因为your_project依赖于package_a ^2.0.0，该包需要SDK版本>=3.5.0 <4.0.0，但当前SDK为3.4.0",
  "regex": "The current Dart SDK version does not satisfy the constraint:.*requires SDK version.*but your current SDK is.*",
  "domain": "flutter",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "A dependency requires a higher Dart SDK version than the one configured in the project's pubspec.yaml or installed locally.",
  "root_cause_type": "generic",
  "root_cause_zh": "某个依赖项需要的Dart SDK版本高于项目pubspec.yaml中配置的或本地安装的版本。",
  "versions": [
    {
      "version": "Flutter 3.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Older versions may have the same SDK constraint or introduce other incompatibilities.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "pubspec.lock is auto-generated and will be overwritten on next 'pub get'.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This doesn't upgrade the actual Dart SDK; the local SDK remains at 3.4.0.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade the Dart SDK: run 'flutter upgrade' to get the latest Flutter which includes a higher Dart SDK, or download a newer Dart SDK manually and update the PATH.",
      "success_rate": 0.95,
      "how": "Upgrade the Dart SDK: run 'flutter upgrade' to get the latest Flutter which includes a higher Dart SDK, or download a newer Dart SDK manually and update the PATH.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Downgrade the problematic package to a version that supports your current SDK. Check pub.dev for older versions and update pubspec.yaml: 'package_a: ^1.9.0'.",
      "success_rate": 0.8,
      "how": "Downgrade the problematic package to a version that supports your current SDK. Check pub.dev for older versions and update pubspec.yaml: 'package_a: ^1.9.0'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use dependency_overrides in pubspec.yaml to force a version that works, but be aware of potential issues: dependency_overrides: package_a: ^1.9.0",
      "success_rate": 0.75,
      "how": "Use dependency_overrides in pubspec.yaml to force a version that works, but be aware of potential issues: dependency_overrides: package_a: ^1.9.0",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Upgrade the Dart SDK: run 'flutter upgrade' to get the latest Flutter which includes a higher Dart SDK, or download a newer Dart SDK manually and update the PATH.",
    "Downgrade the problematic package to a version that supports your current SDK. Check pub.dev for older versions and update pubspec.yaml: 'package_a: ^1.9.0'.",
    "Use dependency_overrides in pubspec.yaml to force a version that works, but be aware of potential issues: dependency_overrides: package_a: ^1.9.0"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}