简体   繁体   English

Flutter:我的 Android 模拟器无法连接到 firebase 服务

[英]Flutter: My Android Emulator won't connect to firebase services

I have a problem with my app recently.我的应用程序最近有问题。 I'm running my app on windows in a android emulator: SDK API 33. Everything was working fine until yesterday.我在 windows 上的 android 模拟器中运行我的应用程序:SDK API 33。直到昨天一切正常。 When i was in my HomeScreen my Firebase Firestore widgets weren't loading anymore, so i was wiping the data from my emulator.当我在主屏幕时,我的 Firebase Firestore 小部件不再加载,所以我正在从我的模拟器中擦除数据。 Now i'm stuck at my Auth-Screen;现在我被困在我的授权屏幕上; when i want to login with my account i'm only getting this debug message when I'm pressing the login button:当我想用我的帐户登录时,我只会在按下登录按钮时收到此调试消息:

[ +873 ms] W/System( 7190): Ignoring header X-Firebase-Locale because its value was null.

When i'm rebuilding the app i'm getting the message:当我重建应用程序时,我收到消息:

W/FIAM.Headless( 7190): Service fetch error: DEADLINE_EXCEEDED: deadline exceeded after 29.807599400s.

The message "Ignoring header X-Firebase-Locale because its value was null."消息“忽略标题 X-Firebase-Locale 因为它的值为空。” is just a warning and does not indicate a problem with your app or Firebase services.只是一个警告,并不表示您的应用或 Firebase 服务有问题。

Usual cause of this issue are Email/Password Sign-in method being disabled in the Firebase console and the Android emulator not being set up properly.此问题的常见原因是电子邮件/密码登录方法在 Firebase 控制台中被禁用,并且 Android 模拟器未正确设置。

check these similar cases for more information:查看这些类似案例以获取更多信息:

Also try flutter clean command to delete any temporary files that may be causing problems.也可以尝试使用flutter clean命令删除任何可能导致问题的临时文件。 Then, rebuild and run your app.If you are still facing the issue, I have found this issue tracker raised for a similar issue which is still open.然后,重建并运行你的应用程序。如果你仍然面临这个问题,我发现这个问题跟踪器是针对一个仍然开放的类似问题提出的。 you can report there or you can raise new raise issue at github .你可以在那里报告或者你可以在github上提出新的 raise 问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter Firebase 适用于真实设备 不适用于 Android 仿真器 - Flutter Firebase Works On Real Device Not On Android Emulator Firebase 在 Android Studio 模拟器上不起作用 - Firebase doesn't work on Android Studio Emulator Flutter / Firebase - 我的 iOS 设备在 WiFi 存储时无法连接到 ZBF12E1515C25C7D8C0352F14133AB9 - Flutter / Firebase - My iOS device will not connect to firebase / firestore while on WiFi 如何连接到 Firebase Auth 模拟器 - How to connect to Firebase Auth emulator Firebase Flutter 在模拟器中不起作用 - Firebase Flutter does not work in emulator 将 Firebase-functions-emulator 与远程 firebase 服务一起使用 - Use Firebase-functions-emulator with remote firebase services 无法将管理员 SDK 连接到 firebase 身份验证模拟器 - Cannot connect Admin SDK to firebase authentication emulator 为什么在 flutter 应用程序上访问 firebase 时,Windows Android Studio Emulator 会突然变慢? - Why would the Windows Android Studio Emulator suddenly become slow when accessing firebase on a flutter app? 无法使用 exec 连接到 firebase 仿真器套件 - Unable to connect to firebase emulator suite with exec 本地 Pubsub 模拟器不适用于 Dataflow - Local Pubsub Emulator won't work with Dataflow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM