Flutter应用程序-连续出现错误“该应用程序可能在其主线程上做太多工作”

时间:2019-10-08 19:40:00

标签: flutter dart firebase-admob

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

  

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

仅在添加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

我该怎么办?

0 个答案:

没有答案