Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingPluginException(No implementation found for method listen on channel com.huawei.hms.flutter.ads/interstitial/event/849654803) #146

Closed
juanlabrador opened this issue Dec 12, 2021 · 2 comments

Comments

@juanlabrador
Copy link

juanlabrador commented Dec 12, 2021

Description
Hi, i start to receive this error when open the app

MissingPluginException(No implementation found for method listen on channel com.huawei.hms.flutter.ads/interstitial/event/849654803)

I add the splashAd and show correctly, when call main screen, crashed.

Logs
I/flutter (13015): EVENT SPLASH: SplashAdLoadEvent.loaded
I/flutter (13015): EVENT SPLASH: SplashAdLoadEvent.dismissed
I/flutter (13015): MissingPluginException(No implementation found for method listen on channel com.huawei.hms.flutter.ads/interstitial/event/849654803)
I/flutter (13015): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:165)
I/flutter (13015):
I/flutter (13015): #1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:506)
I/flutter (13015):
I/flutter (13015): Another exception was thrown: Instance of 'DiagnosticsProperty'
F/flutter (13015): [FATAL:flutter/fml/message_loop.cc(78)] Check failed: loop != nullptr. MessageLoop::EnsureInitializedForCurrentThread was not called on this thread prior to message loop use.

Environment
[✓] Flutter (Channel stable, 2.8.0, on macOS 12.0.1 21A559 darwin-arm, locale es-419)
• Flutter version 2.8.0 at /Users/juanlabrador/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cf44000065 (4 days ago), 2021-12-08 14:06:50 -0800
• Engine revision 40a99c5951
• Dart version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/juanlabrador/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.62.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
• JNY LX2 (mobile) • 94HUT20217000273 • android-arm64 • Android 10 (API 29)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.93

• No issues found!

@basit192
Copy link

I am facing the same issue with same logs. it is crashing everytime

@huseyinerenguler
Copy link

Hi @juanlabrador @basit192

We noticed that this issue only exists after Flutter 2.8 version. Flutter team made a lot of changes with version 2.8 and this issue occurred due to a situation in the EventChannel structure.

While the Ads plugin was being developed and tested, the latest version of Flutter was 2.2.3. According to our recent tests, it works in Flutter 2.5.3 and below.

We will provide an update which addresses this issue in our next major release. Please keep an eye on pub.dev.

More info:
Huawei Ads Kit Flutter Plugin
Flutter SDK releases
What’s New in Flutter 2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants