{
  "id": "flutter/platform-channel-timeout",
  "signature": "MissingPluginException: Timeout waiting for method call result on channel",
  "signature_zh": "MissingPluginException：等待通道上的方法调用结果超时",
  "regex": "MissingPluginException.*Timeout waiting for method call result on channel",
  "domain": "flutter",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A platform channel method call from Flutter to native (Android/iOS) did not return a result within the default timeout, often due to a missing or unresponsive native plugin implementation.",
  "root_cause_type": "generic",
  "root_cause_zh": "从Flutter到原生（Android/iOS）的平台通道方法调用未在默认超时内返回结果，通常是由于缺少或未响应的原生插件实现。",
  "versions": [
    {
      "version": "Flutter 3.16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Flutter 3.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The plugin still never responds; the timeout just delays the error.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Stale registrations persist and the timeout continues.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The native side listens on the old channel name, so the new call is never handled.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'flutter clean' and 'flutter pub get' to rebuild plugin registrations, then rebuild the app.",
      "success_rate": 0.8,
      "how": "Run 'flutter clean' and 'flutter pub get' to rebuild plugin registrations, then rebuild the app.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Verify that the plugin is properly registered in the native side: check MainActivity.kt (Android) or AppDelegate.swift (iOS) for GeneratedPluginRegistrant.",
      "success_rate": 0.75,
      "how": "Verify that the plugin is properly registered in the native side: check MainActivity.kt (Android) or AppDelegate.swift (iOS) for GeneratedPluginRegistrant.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add a try-catch around the method call to handle timeout gracefully and retry.",
      "success_rate": 0.7,
      "how": "Add a try-catch around the method call to handle timeout gracefully and retry.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Run 'flutter clean' and 'flutter pub get' to rebuild plugin registrations, then rebuild the app.",
    "Verify that the plugin is properly registered in the native side: check MainActivity.kt (Android) or AppDelegate.swift (iOS) for GeneratedPluginRegistrant.",
    "Add a try-catch around the method call to handle timeout gracefully and retry."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.flutter.dev/platform-integration/platform-channels",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.78,
  "resolvable": "true",
  "first_seen": "2023-09-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}