当我在调试模式下运行应用程序时,我有这个错误我想打印验证令牌,但当我重新加载应用程序时,我收到了此消息D
> /ViewRootImpl@22a08dc[MainActivity]( 6846): Relayout returned: old=(0,0,720,1480) new=(0,0,720,1480) req=(720,1480)0 dur=14 res=0x3 s={true 4058093568} ch=false
> E/flutter ( 6846): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [firebase_messaging/unknown] java.io.IOException: FIS_AUTH_ERROR
> E/flutter ( 6846): #0 StandardMethodCodec.decodeEnvelope
> package:flutter/…/services/message_codecs.dart:653
> E/flutter ( 6846): #1 MethodChannel._invokeMethod
> package:flutter/…/services/platform_channel.dart:296
> E/flutter ( 6846): <asynchronous suspension>
> E/flutter ( 6846): #2 MethodChannel.invokeMapMethod
> package:flutter/…/services/platform_channel.dart:499
> E/flutter ( 6846): <asynchronous suspension>
> E/flutter ( 6846): #3 MethodChannelFirebaseMessaging.getToken
> package:firebase_messaging_platform_interface/…/method_channel/method_channel_messaging.dart:224
> E/flutter ( 6846): <asynchronous suspension>
> E/flutter ( 6846):
我试图删除构建文件夹并重新构建它,但它不工作
确保您已经安装了最新的firebase_auth和firebase_core包。如果问题仍然存在,请检查是否正确集成了firebase。删除firebase_options。Dart文件(android),并尝试将您的firebase项目与您的flutter应用程序再次集成