1

在 VSCode 调试控制台中出现连续错误,例如:

I/Choreographer(16759):跳过了 35 帧!应用程序可能在其主线程上做了太多工作。E/eglCodecCommon(16759):glUtilsParamSize:未知参数 0x000085b5 I/chatty(16759):uid=10089(u0_a89)RenderThread 相同的 2 行 E/eglCodecCommon(16759):glUtilsParamSize:未知参数 0x000085b5 I/Choreographer:1/Choreographer:帧!应用程序可能在其主线程上做了太多工作。E/eglCodecCommon(16759):glUtilsParamSize:未知参数 0x000085b5 I/chatty(16759):uid=10089(u0_a89)RenderThread 相同的 2 行 E/eglCodecCommon(16759):glUtilsParamSize:未知参数 0x000085b5 I/Choreographer:1/Choreographer:帧!应用程序可能在其主线程上做了太多工作。

在添加 firebase_admob 插件并初始化 FirebaseAdmob 实例后,此错误开始像无限循环一样在调试控制台中显示,从而使应用程序变慢/挂起。

FirebaseAdMob.instance
        .initialize(appId: "ca-app-pub-123457890xxxxxx~1234567890")
        .then((response) {
          print("starting admob >>>>>>>>>");
      myBanner
        ..load()
        ..show(anchorOffset: 0.0, anchorType: AnchorType.bottom);
    });

在评论 firebaseadmob 初始化后,错误消失了。我的 admob 版本是 firebase_admob: 0.6.1

我能做些什么?

4

0 回答 0