[firebase_core]: <Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.initializeCore"., null, null)>
Is there an existing issue for this?
- [x] I have searched the existing issues.
Which plugins are affected?
Core
Which platforms are affected?
Android
Description
Hello, After upgraded Flutter to 3.35.7 (latest version) and updated all my Firebase packages (latest version). My app works on --debug version but not on --release.
I have tried all solutions found, but nothing works :
-> Add all FirebaseOptions (in Firebase.initializeApp)
-> Add shrinkResources false minifyEnabled false in my build.gradle
-> Clean all cache and put all commands (flutter pub outdated, flutter pub upgrade --major-versions)
I'm stuck on this problem and cannot submit new bundle to PlayStore.
If I create apk --release or app bundle, i always get this error
My firebase dependencies
firebase_auth: ^6.1.1 cloud_firestore: ^6.0.3 firebase_core: ^4.2.0 firebase_storage: ^13.0.3 firebase_ai: ^3.4.0 firebase_analytics: ^12.0.3
Reproducing the issue
Flutter 3.35.7, all packages mentioned
Firebase Core version
4.2.0
Flutter Version
3.35.7
Relevant Log Output
r, Unable to establish connection on channel: "dev.flutter.pigeon.firebase_core_platform_interface.FirebaseCoreHostApi.initializeCore"., null, null)
11-02 19:48:00.722 20520 20520 E flutter : #0 FirebaseCoreHostApi.initializeCore (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:301)
11-02 19:48:00.722 20520 20520 E flutter : <asynchronous suspension>
11-02 19:48:00.722 20520 20520 E flutter : #1 MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:29)
11-02 19:48:00.722 20520 20520 E flutter : <asynchronous suspension>
11-02 19:48:00.722 20520 20520 E flutter : #2 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:70)
11-02 19:48:00.722 20520 20520 E flutter : <asynchronous suspension>
11-02 19:48:00.722 20520 20520 E flutter : #3 Firebase.initializeApp (package:firebase_core/src/firebase.dart:78)
11-02 19:48:00.722 20520 20520 E flutter : <asynchronous suspension>
11-02 19:48:00.722 20520 20520 E flutter : #4 firebaseMainInit (package:trueshape/services/database/firestore_service.dart:14)
11-02 19:48:00.722 20520 20520 E flutter : <asynchronous suspension>
11-02 19:48:00.722 20520 20520 E flutter : #5 main (package:trueshape/main.dart:28)
Flutter dependencies
Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
Duplicate of https://github.com/firebase/flutterfire/issues/17817
Upgrade to firebase_core_platform_interface 6.0.2 — this version includes a fix for the bug related to the demoProjectId argument in Firebase.initializeApp(). The fix was shipped in commit 09d03aac under the change: “FIX: a bug with the demoProjectId arg to Firebase.initializeApp() (#17703)”