gstory0404 / flutter_tencentad

腾讯优量汇(广点通)广告 Flutter版本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

动态信息流/横幅/视频贴片广告 报错

dev-zl opened this issue · comments

I/flutter (10412): 动态信息流广告显示
W/ContentCatcher(10412): Failed to notify a WebView
E/InputMethodManager(10412): b/117267690: Failed to get fallback IMM with expected displayId=24 actual IMM#displayId=0 view=com.qq.e.c
omm.plugin.I.c{4007378 VFED..C.. ........ 0,0-1079,872}
E/WindowManager(10412): BadTokenException or InvalidDisplayException, clean up.
E/MethodChannel#flutter/platform_views(10412): Failed to handle method call
E/MethodChannel#flutter/platform_views(10412): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.
Binder@e33aaa8 is not valid; is your activity running?
E/MethodChannel#flutter/platform_views(10412): at android.view.ViewRootImpl.setView(ViewRootImpl.java:991)
E/MethodChannel#flutter/platform_views(10412): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387)
E/MethodChannel#flutter/platform_views(10412): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:96)
E/MethodChannel#flutter/platform_views(10412): at android.app.Dialog.show(Dialog.java:344)
E/MethodChannel#flutter/platform_views(10412): at android.app.Presentation.show(Presentation.java:260)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.plugin.platform.VirtualDisplayController.resize(VirtualDisplayController
.java:161)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.plugin.platform.PlatformViewsController$1.resizePlatformView(PlatformVie
wsController.java:285)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.resize(PlatformVi
ewsChannel.java:138)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(Plat
formViewsChannel.java:65)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodCh
annel.java:233)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.
java:85)
E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/MethodChannel#flutter/platform_views(10412): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/platform_views(10412): at android.os.MessageQueue.next(MessageQueue.java:336)
E/MethodChannel#flutter/platform_views(10412): at android.os.Looper.loop(Looper.java:183)
E/MethodChannel#flutter/platform_views(10412): at android.app.ActivityThread.main(ActivityThread.java:7592)
E/MethodChannel#flutter/platform_views(10412): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/platform_views(10412): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
E/MethodChannel#flutter/platform_views(10412): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
E/flutter (10412): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, Unable to add window --
token android.os.Binder@e33aaa8 is not valid; is your activity running?, null, android.view.WindowManager$BadTokenException: Unable to
add window -- token android.os.Binder@e33aaa8 is not valid; is your activity running?
E/flutter (10412): at android.view.ViewRootImpl.setView(ViewRootImpl.java:991)
E/flutter (10412): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387)
E/flutter (10412): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:96)
E/flutter (10412): at android.app.Dialog.show(Dialog.java:344)
E/flutter (10412): at android.app.Presentation.show(Presentation.java:260)
E/flutter (10412): at io.flutter.plugin.platform.VirtualDisplayController.resize(VirtualDisplayController.java:161)
E/flutter (10412): at io.flutter.plugin.platform.PlatformViewsController$1.resizePlatformView(PlatformViewsController.java:285)
E/flutter (10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.resize(PlatformViewsChannel.java:138)
E/flutter (10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:65
)
E/flutter (10412): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter (10412): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (10412): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/flutter (10412): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (10412): at android.os.MessageQueue.next(MessageQueue.java:336)
E/flutter (10412): at android.os.Looper.loop(Looper.java:183)
E/flutter (10412): at android.app.ActivityThread.main(ActivityThread.java:7592)
E/flutter (10412): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (10412): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
E/flutter (10412): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
E/flutter (10412): )
E/flutter (10412): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7)
E/flutter (10412): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)
E/flutter (10412):
E/flutter (10412): #2 TextureAndroidViewController.setSize (package:flutter/src/services/platform_views.dart:1009:5)
E/flutter (10412):
E/flutter (10412): #3 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:193:7)
E/flutter (10412):
E/flutter (10412):
I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver
I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver
I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver
I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver
I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver
I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver
I/TeaLog (10412): p worked:true 60000
I/TeaLog (10412): s0 0
I/TeaLog (10412): s worked:true 60000
I/Zeus/receiver(10412): ZeusTransformUtils-registerReceiver-execute
I/Zeus/receiver(10412): ZeusTransformUtils-registerReceiver-execute

flutter_tencentad: ^1.1.3

flutter_tencentad: 1.1.0 是正常的

每次必现吗

这边测试没出现问题,设置开启http权限试试,有些广告会返回http连接 加载会出现异常

是必现,明天我重新试试

这边测试没出现问题,设置开启http权限试试,有些广告会返回http连接 加载会出现异常

开启了 还是这个问题