Home > OS >  await Firebase.initializeApp(); PlatformException(channel-error, Unable to establish connection on c
await Firebase.initializeApp(); PlatformException(channel-error, Unable to establish connection on c

Time:12-13

i tried to connect my project to firebase but when connecting there is always an error message like this error message like this

I have also used the latest packages but the problem remains the same (https://i.stack.imgur.com/SkcEG.png)

CodePudding user response:

Try stopping the entire app, then run:

flutter clean

flutter pub get

then run it again.

CodePudding user response:

This error happens when there is a problem with the connection to the Firebase servers. Make sure:

  1. You have correctly configured your Firebase project and added the necessary credentials to your app.
  2. Clean the app using: flutter clean and remove pubspec.lock
  3. Rebuild the app
  4. If still facing the issue then restart your system
  • Related