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.

New contributor
Suyoung is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0