{
  "id": "flutter/plugin-not-implemented-android-ios",
  "signature": "MissingPluginException: No implementation found for method on channel com.example.app/channel: Plugin not registered for Android/iOS",
  "signature_zh": "MissingPluginException：在通道com.example.app/channel上未找到方法的实现：插件未在Android/iOS上注册",
  "regex": "MissingPluginException: No implementation found for method .* on channel .*",
  "domain": "flutter",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A Flutter plugin's native code is not properly registered in the Android MainActivity or iOS AppDelegate.",
  "root_cause_type": "generic",
  "root_cause_zh": "Flutter插件的原生代码未在Android MainActivity或iOS AppDelegate中正确注册。",
  "versions": [
    {
      "version": "Flutter 3.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Android 14",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "iOS 17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Cleaning doesn't affect native plugin registration; the issue is in the native code setup.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error persists if the native side isn't updated to register the new version's methods.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The plugin is already declared; the issue is at the native level, not the Dart side.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "For Android: In android/app/src/main/kotlin/.../MainActivity.kt, ensure the plugin is registered in the FlutterEngine. Example: override fun configureFlutterEngine(flutterEngine: FlutterEngine) { super.configureFlutterEngine(flutterEngine); flutterEngine.plugins.add(MyPlugin()) }",
      "success_rate": 0.9,
      "how": "For Android: In android/app/src/main/kotlin/.../MainActivity.kt, ensure the plugin is registered in the FlutterEngine. Example: override fun configureFlutterEngine(flutterEngine: FlutterEngine) { super.configureFlutterEngine(flutterEngine); flutterEngine.plugins.add(MyPlugin()) }",
      "condition": "",
      "sources": []
    },
    {
      "action": "For iOS: In ios/Runner/AppDelegate.swift, ensure GeneratedPluginRegistrant.register(with: self) is called in application(_:didFinishLaunchingWithOptions:). If not, add it.",
      "success_rate": 0.85,
      "how": "For iOS: In ios/Runner/AppDelegate.swift, ensure GeneratedPluginRegistrant.register(with: self) is called in application(_:didFinishLaunchingWithOptions:). If not, add it.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Regenerate the platform-specific code by running 'flutter pub upgrade' and then 'flutter build ios' or 'flutter build apk' to force plugin registration.",
      "success_rate": 0.8,
      "how": "Regenerate the platform-specific code by running 'flutter pub upgrade' and then 'flutter build ios' or 'flutter build apk' to force plugin registration.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "For Android: In android/app/src/main/kotlin/.../MainActivity.kt, ensure the plugin is registered in the FlutterEngine. Example: override fun configureFlutterEngine(flutterEngine: FlutterEngine) { super.configureFlutterEngine(flutterEngine); flutterEngine.plugins.add(MyPlugin()) }",
    "For iOS: In ios/Runner/AppDelegate.swift, ensure GeneratedPluginRegistrant.register(with: self) is called in application(_:didFinishLaunchingWithOptions:). If not, add it.",
    "Regenerate the platform-specific code by running 'flutter pub upgrade' and then 'flutter build ios' or 'flutter build apk' to force plugin registration."
  ],
  "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-02-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}