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

(Android) Unhandled Exception: MissingPluginException(No implementation found for method dispose on channel admob_flutter/banner_0)) #172

Closed
hygehyge opened this issue May 28, 2020 · 7 comments · Fixed by #176
Labels
more info required An issue was created with enough information to debug.

Comments

@hygehyge
Copy link

When I ran 1.0.0-beta.3 example app and scroll the ListView, I got this exception.

E/flutter (23122): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method dispose on channel admob_flutter/banner_0)
[38;5;244mE/flutter (23122): #0 MethodChannel._invokeMethod[39;49m
E/flutter (23122):
[38;5;244mE/flutter (23122): #1 MethodChannel.invokeMethod[39;49m
[38;5;248mE/flutter (23122): #2 AdmobBannerController.dispose[39;49m
[38;5;248mE/flutter (23122): #3 _AdmobBannerState.dispose[39;49m
[38;5;244mE/flutter (23122): #4 StatefulElement.unmount[39;49m
[38;5;244mE/flutter (23122): #5 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #6 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #7 SingleChildRenderObjectElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #8 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #9 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #10 ComponentElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #11 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #12 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #13 MultiChildRenderObjectElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #14 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #15 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #16 SingleChildRenderObjectElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #17 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #18 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #19 SingleChildRenderObjectElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #20 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #21 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #22 ComponentElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #23 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #24 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #25 ComponentElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #26 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #27 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #28 ComponentElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #29 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #30 _InactiveElements._unmount.[39;49m
[38;5;244mE/flutter (23122): #31 ComponentElement.visitChildren[39;49m
[38;5;244mE/flutter (23122): #32 _InactiveElements._unmount[39;49m
[38;5;244mE/flutter (23122): #33 ListIterable.forEach (dart:_internal/iterable.dart:41:13)[39;49m
[38;5;244mE/flutter (23122): #34 _InactiveElements._unmountAll[39;49m
[38;5;244mE/flutter (23122): #35 BuildOwner.finalizeTree.[39;49m
[38;5;244mE/flutter (23122): #36 BuildOwner.lockState[39;49m
[38;5;244mE/flutter (23122): #37 BuildOwner.finalizeTree[39;49m
[38;5;244mE/flutter (23122): #38 WidgetsBinding.drawFrame[39;49m
[38;5;244mE/flutter (23122): #39 RendererBinding._handlePersistentFrameCallback[39;49m

Below is the output of flutter doctor -v.

[√] Flutter (Channel stable, v1.17.1, on Microsoft Windows [Version 10.0.18363.836], locale ja-JP)
• Flutter version 1.17.1 at D:\Flutter\SDK
• Framework revision f7a6a7906b (2 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\AndroidSDK
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = C:\AndroidSDK
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 38.2.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code (version 1.45.1)
• VS Code at C:\Users\HYGE\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.10.2

[√] Connected device (1 available)
• J9210 • QV711QTV24 • android-arm64 • Android 10 (API 29)

Ver.0.3.4 doesn't have this issue.
Is there any idea ?
Best regards, Thank you.

@kmcgill88
Copy link
Owner

kmcgill88 commented May 28, 2020

Does it do this on iOS?

I added this and this in beta 3. I wonder if it is the issue.

@kmcgill88 kmcgill88 added the more info required An issue was created with enough information to debug. label May 28, 2020
@hygehyge
Copy link
Author

hygehyge commented May 28, 2020

I don't have iPhone or Mac, so cannot check if this happens on iOS.

I'll attach Android repro ASAP.

@hygehyge
Copy link
Author

@kmcgill88
Here is repro.
test_admob_flutter.zip

I create this through the following steps.
 1.Create new Flutter project in VSCode.
 2.Add admob_flutter: ^1.0.0-beta.3 to pubspec.yaml.
 3.Add meta-data tag with

android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713"

   to AndroidManifest.xml@android\app\src\main.
 4.Copy example.dart to main.dart.
 5.Add testDeviceId to Admob.initialize method.(repro contains dummy deviceID)
 6.Run and scroll ListView, the Exception is thrown.

It looks like this happens when the "2nd" banner is disappeared.

@Skyost
Copy link
Contributor

Skyost commented May 30, 2020

Same error here, using an Android Emulator. Haven't tested on iOS.

@farhadsaberi
Copy link

same error on android - macos and widows

@kmcgill88
Copy link
Owner

Fixed in 1.0.0-beta.4

@hygehyge
Copy link
Author

hygehyge commented Jun 3, 2020

I check 1.0.0-beta.4 and Exception is gone !!
Thank you for your quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info required An issue was created with enough information to debug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants