# MissingPluginException: No implementation found for method on channel com.example.app/channel: Plugin not registered for Android/iOS

- **ID:** `flutter/plugin-not-implemented-android-ios`
- **Domain:** flutter
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 85%

## Root Cause

A Flutter plugin's native code is not properly registered in the Android MainActivity or iOS AppDelegate.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Flutter 3.22 | active | — | — |
| Android 14 | active | — | — |
| iOS 17 | active | — | — |

## Workarounds

1. **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()) }** (90% success)
   ```
   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()) }
   ```
2. **For iOS: In ios/Runner/AppDelegate.swift, ensure GeneratedPluginRegistrant.register(with: self) is called in application(_:didFinishLaunchingWithOptions:). If not, add it.** (85% success)
   ```
   For iOS: In ios/Runner/AppDelegate.swift, ensure GeneratedPluginRegistrant.register(with: self) is called in application(_:didFinishLaunchingWithOptions:). If not, add it.
   ```
3. **Regenerate the platform-specific code by running 'flutter pub upgrade' and then 'flutter build ios' or 'flutter build apk' to force plugin registration.** (80% success)
   ```
   Regenerate the platform-specific code by running 'flutter pub upgrade' and then 'flutter build ios' or 'flutter build apk' to force plugin registration.
   ```

## Dead Ends

- **** — Cleaning doesn't affect native plugin registration; the issue is in the native code setup. (90% fail)
- **** — The error persists if the native side isn't updated to register the new version's methods. (75% fail)
- **** — The plugin is already declared; the issue is at the native level, not the Dart side. (85% fail)
