0
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)
#0      FirebaseCoreHostApi.initializeCore (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:210:7)
<asynchronous suspension>
#1      MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:29:44)
<asynchronous suspension>
#2      MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:73:7)
<asynchronous suspension>
#3      Firebase.initializeApp (package:firebase_core/src/firebase.dart:66:31)
<asynchronous suspension>
#4      main (package:dual_flash/main.dart:25:3)
<asynchronous suspension>
Syncing files to device iPhone 15...

When I try emulator after I added some code to try logging events with firebase, the emulator is stuck on splash screen. the code works fine when I try to log events on debug view on Android emulator. I get this error on Xcode when I try to build the flutter application. I already tried making a new project on firebase, as well as flutter outdated and upgrading the packages.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.