{
  "id": "flutter/invalid-uri-assertion",
  "signature": "AssertionError: 'file:///...' is not a valid URI",
  "signature_zh": "AssertionError: 'file:///...' 不是有效的 URI",
  "regex": "AssertionError: 'file:///.*' is not a valid URI",
  "domain": "flutter",
  "category": "assertion_error",
  "subcategory": null,
  "root_cause": "Using a malformed URI string (e.g., missing scheme or double slashes) when constructing a Uri object.",
  "root_cause_type": "generic",
  "root_cause_zh": "在构造 Uri 对象时使用了格式错误的 URI 字符串（例如缺少方案或双斜杠）。",
  "versions": [
    {
      "version": "3.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.16.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Does not address the root cause of missing or malformed scheme (e.g., 'file:///path' vs 'file:///C:/path').",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Uri.parse requires absolute URIs; relative paths cause assertion errors.",
      "fail_rate": 0.35,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Without a scheme, the URI is invalid; the platform may misinterpret the path.",
      "fail_rate": 0.25,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use Uri.file() to create file URIs correctly from a file path.",
      "success_rate": 0.95,
      "how": "Use Uri.file() to create file URIs correctly from a file path.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Validate and sanitize the URI string before parsing with Uri.parse().",
      "success_rate": 0.85,
      "how": "Validate and sanitize the URI string before parsing with Uri.parse().",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use path_provider to get correct paths and then convert to URI.",
      "success_rate": 0.9,
      "how": "Use path_provider to get correct paths and then convert to URI.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use Uri.file() to create file URIs correctly from a file path.",
    "Validate and sanitize the URI string before parsing with Uri.parse().",
    "Use path_provider to get correct paths and then convert to URI."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.dart.dev/stable/dart-core/Uri-class.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-04-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}