[firebase_core_platform_interface]: FirebasePlugin not found after upgrading FlutterFire packages
Is there an existing issue for this?
- [x] I have searched the existing issues.
Which plugins are affected?
No response
Which platforms are affected?
No response
Description
After upgrading FlutterFire packages to the latest available versions, the app fails to compile.
Multiple FlutterFire packages extend FirebasePlugin, but FirebasePlugin cannot be found from firebase_core_platform_interface.
For example, cloud_firestore 6.7.0 imports:
import 'package:firebase_core_platform_interface/firebase_core_platform_interface.dart'
show FirebasePlugin;
However, with the resolved dependency firebase_core_platform_interface 7.1.0, I could not find a FirebasePlugin type. I only see FirebasePluginPlatform.
Expected behavior: The latest FlutterFire packages should compile together with the resolved firebase_core_platform_interface version.
Actual behavior: Compilation fails with Type 'FirebasePlugin' not found across multiple Firebase packages.
### Reproducing the issue
**Reproducing the issue**
```markdown
1. Upgrade FlutterFire packages to the following versions:
```yaml
cloud_firestore: ^6.7.0
cloud_functions: ^6.3.4
firebase_ai: ^3.14.0
firebase_analytics: ^12.4.4
firebase_app_check: ^0.4.5+1
firebase_auth: ^6.5.5
firebase_core: ^4.12.0
firebase_crashlytics: ^5.2.5
firebase_database: ^12.4.5
firebase_messaging: ^16.4.2
firebase_remote_config: ^6.5.4
firebase_storage: ^13.4.4
### Firebase Core version
4.12.0
### Flutter Version
3.44.6
### Relevant Log Output
```shell
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
Same thing on our end, thanks for filing. A few details that might help triage.
The break is the FirebasePluginPlatform to FirebasePlugin rename. It shipped in the latest leaf packages, but no published firebase_core_platform_interface actually defines FirebasePlugin — 7.1.0, the current latest, still only has FirebasePluginPlatform. So it is not firestore-specific, it hits every FlutterFire package that did the rename.
Exact boundary for messaging:
firebase_messaging 16.4.1extendsFirebasePluginPlatformand compilesfirebase_messaging 16.4.2extendsFirebasePluginand fails
Workaround until a fixed firebase_core_platform_interface (or reverted leaf packages) ships: pin each affected package to its last pre-rename version, for example firebase_messaging: 16.4.1.
Fuller writeup with logs in #18438.
I wonder how the tests missed this? Maybe something missing there too.
I wonder how the tests missed this? Maybe something missing there too.
Good point, yeah.
Is there any solution? Downgrading version don't help me
Is there any solution? Downgrading version don't help me
I had the same issue and we were able to fix it by downgrade every firebase_* package to the previous patch version, not just the one you are seeing the error on.
example of the temporary downgrade in pubspec.yaml
firebase_core: <4.12.0
firebase_messaging: <16.4.2
Ugh, any chance y'all are going to release the fix? I imagine everything built on the plugin interface is affected.
Google can have such serious problems?
The only option is to revert to the previous version.
firebase_core: ^4.12.0
firebase_messaging: 16.4.1
firebase_analytics: 12.4.3
firebase_crashlytics: 5.2.4
quite annoying that these people work in good environment and forget to do basic things such as publishing a pub package.
anyways you could get over it by resolving to the git version, it's up to date but the pub version isn't
dependency_overrides:
firebase_core_platform_interface:
git:
url: https://github.com/firebase/flutterfire.git
path: packages/firebase_core/firebase_core_platform_interface
Hi all, thanks for reporting this. Taking a look now.
Hi all, we've published new plugin versions with the fix. Please run flutter pub upgrade and try again.
Sorry for the inconvenience, and thank you for your patience!
now has an other eror: Because firebase_core >=4.12.1 depends on firebase_core_platform_interface ^8.0.0 and firebase_core_web >=3.9.0 depends on firebase_core_platform_interface ^7.1.0, firebase_core >=4.12.1 is incompatible with firebase_core_web >=3.9.0. So, because my_app depends on firebase_core ^4.12.1 which depends on firebase_core_web ^3.9.0, version solving failed. Failed to update packages.
now has an other eror: Because firebase_core >=4.12.1 depends on firebase_core_platform_interface ^8.0.0 and firebase_core_web >=3.9.0 depends on firebase_core_platform_interface ^7.1.0, firebase_core >=4.12.1 is incompatible with firebase_core_web >=3.9.0. So, because my_app depends on firebase_core ^4.12.1 which depends on firebase_core_web ^3.9.0, version solving failed. Failed to update packages.
Same here.
Working on it.
Hi @SelaseKay — thanks for turning this around so quickly. To help narrow down what's left, we audited the published metadata for all 39 FlutterFire packages on pub.dev just now. Exactly one package still carries the old platform-interface constraint:
| Package | Latest on pub.dev | Published | requires firebase_core_platform_interface |
|---|---|---|---|
firebase_core |
4.12.1 | 2026-07-14 | ^8.0.0 |
firebase_core_web |
3.9.0 | 2026-06-17 | ^7.1.0 ⬅️ |
firebase_core_platform_interface |
8.0.0 | 2026-07-14 | — |
Every other package — firebase_auth 6.5.6, cloud_firestore 6.7.1, firebase_messaging 16.4.3, firebase_storage 13.4.5, cloud_functions 6.3.5, firebase_analytics 12.4.5, firebase_remote_config 6.5.5, firebase_database 12.4.6, firebase_app_check 0.4.5+2, firebase_crashlytics 5.2.6, firebase_performance 0.11.4+5, firebase_in_app_messaging 0.9.2+6, firebase_ai 3.14.1, _flutterfire_internals 1.3.75, and all the *_web / *_platform_interface companions — was republished today and is already consistent on firebase_core ^4.12.1 / fcpi ^8.0.0.
So firebase_core_web looks like the single remaining blocker, which matches the resolver output others are seeing:
Because firebase_core >=4.12.1 depends on firebase_core_platform_interface ^8.0.0
and firebase_core_web >=3.9.0 depends on firebase_core_platform_interface ^7.1.0,
firebase_core >=4.12.1 is incompatible with firebase_core_web >=3.9.0.
One detail that might save a round-trip: firebase_core 4.12.1 constrains firebase_core_web: ^3.9.0, so a new firebase_core_web would need to land inside that range (e.g. 3.10.0) for 4.12.1 to resolve as-is. If the new firebase_core_web goes out as 4.0.0, firebase_core would need a companion patch to widen its constraint.
Interim workaround, for anyone landing here: rather than pinning each plugin individually, a single upper bound on firebase_core is enough to hold the whole graph on the last-good wave, since every affected plugin requires firebase_core ^4.12.x:
firebase_core: '>=4.11.0 <4.12.0'
That transitively holds firebase_auth 6.5.4, cloud_firestore 6.6.0, firebase_messaging 16.4.1, firebase_storage 13.4.3, cloud_functions 6.3.3, etc., including plugins pulled in indirectly through other packages — and it's a one-line revert once the fixed wave lands. (We verified this across 9 apps: flutter pub upgrade --dry-run reports No dependencies would change.)
Happy to re-run the audit and confirm once firebase_core_web is published. Thanks again for the quick response.
Dependency conflict with firebase_core_platform_interface in 6.5.5
Description
pubspec.yaml
environment:
sdk: '>=3.8.0 <4.0.0'
flutter: '>=3.24.7'
dependencies:
firebase_analytics: ^12.4.5
firebase_core: ^4.12.1
firebase_crashlytics: ^5.2.6
firebase_messaging: ^16.4.3
firebase_remote_config: ^6.5.5
firebase_remote_config 6.5.5 has an unresolvable dependency conflict with its own web implementation.
The version 6.5.5 bumped firebase_core_platform_interface from ^7.1.0 to ^8.0.0, but
firebase_remote_config_web: ^1.10.12 → firebase_core_web: ^3.9.0 still requires
firebase_core_platform_interface: ^7.1.0, creating a self-contradiction.
Notes: - firebase_crashlytics >=5.2.6 depends on firebase_core_platform_interface ^8.0.0 - firebase_core_web >=3.9.0 depends on firebase_core_platform_interface ^7.1.0 - Both are direct dependencies and they conflict because of the different firebase_core_platform_interface version requirements.
Steps to reproduce
- Add
firebase_remote_config: ^6.5.5topubspec.yaml - Run
flutter pub get - Run
flutter --version
Flutter 3.44.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ee80f08bbf (6 days ago) • 2026-07-08 15:02:06 -0700
Engine • hash d3a3293399556a85388faf8c6f0723a7a5597aa8 (revision 83675ed276) (13 days ago) • 2026-06-30 16:59:03.000Z
Tools • Dart 3.12.2 • DevTools 2.57.0
Error
Resolving dependencies...
Because firebase_remote_config_web >=1.10.10 depends on firebase_core_web ^3.9.0 which depends on firebase_core_platform_interface ^7.1.0, firebase_remote_config_web >=1.10.10 requires firebase_core_platform_interface ^7.1.0.
And because firebase_remote_config >=6.5.5 depends on firebase_core_platform_interface ^8.0.0, firebase_remote_config_web >=1.10.10 is incompatible with firebase_remote_config >=6.5.5.
So, because worker depends on firebase_remote_config ^6.5.5 which depends on firebase_remote_config_web ^1.10.12, version solving failed.
Failed to update packages.
Hi all, firebase_core_web 3.9.1 has been published. Kindly run flutter pub upgrade and try again.
Thanks. Confirming this fixed it for me.
Confirmed, it works!!
Thanks