简体   繁体   中英

Unhandled Exception: MissingPluginException(No implementation found for method _init on channel plugins.flutter.io/google_mobile_ads) in_app_purchase

I get Unhandled Exception: MissingPluginException(No implementation found for method _init on channel plugins.flutter.io/google_mobile_ads) error as soon as I add in_app_purchase as a dependency. Before adding it as a dependency, google_mobile_ads work just fine. I need both in_app_purchase and google_mobile_ads in my app, how do I deal with it?

PS Please do not suggest flutter clean and stopping and running the app up again, none of these worked for me.

I found an answer. I don't know how google_mobile_ads is connected to this, but this error was appearing because I had both in_app_purchase and flutter_billing as a dependency. As soon as I removed flutter_billing, everything worked just fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question Unhandled Exception: MissingPluginException(No implementation found for method X on channel plugins.flutter.io/Y) FLUTTER Unhandled Exception: MissingPluginException(No implementation found for method map#waitForMap on channel plugins.flutter.io/google_maps_0) MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in) Flutter Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker) Error MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in) after publishing to Google Play Store Unhandled Exception MissingPluginException: No implementation found for method Firebase#initializeCore on channel plugins.flutter.io/firebase_core MissingPluginException (MissingPluginException(No implementation found for method camera#animate on channel plugins.flutter.io/google_maps_53)) MissingPluginException (MissingPluginException(No implementation found for method Firebase#initializeCore on channel plugins.flutter.io/firebase_core) MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider) missingpluginexception(no implementation found for method firebase#initializecore on channel plugins.flutter.io/firebase_core)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM