I get this error:
Member not found: ‘FirebaseAppPlatform.verifyExtends’.
FirebaseAppPlatform.verifyExtends(_delegate);
flutter clean
flutter pub get
pod install
I get this error:
Member not found: ‘FirebaseAppPlatform.verifyExtends’.
FirebaseAppPlatform.verifyExtends(_delegate);
flutter clean
flutter pub get
pod install
20
Answers
I could be wrong about this solution, but there was a bug introduced in some firebase packages because breaking changes were added to a minor/patch. The quick fix for me was to specify the exact version of the firebase_core_platform_interface in my pubspec.yaml:
After flutter clean this satisfied my packages relying on firebase_core_platform_interface "^4.5.1" and prevented introducing the breaking changes by utilizing 4.5.2 (in this case verifyExtends being renamed verify? whoops).
Github ref: https://github.com/firebase/flutterfire/issues/9806#issuecomment-1294003289
A breaking changes was done,few hours ago.Try this works.For more info see github issue: https://github.com/firebase/flutterfire/issues/9806
I had the same problem. Some of my plugins were running on older outdated packages and there has been a major version upgrade as mentioned by others. When running
flutter pub upgrade
, it only upgrades to the latest minor version. To fix this, I did the following:to upgrade to the latest supported major-versions. After that, everything worked great!
Please be aware that this may introduce some breaking changes in your code. But here at least, you may be able to fix your code to run on the latest library packages and run your app.
firebase_core_platform_interface: 4.5.1
Try adding this package in
pubspec.yaml
to force install 4.5.1,4.5.2 has major changes, which was being automatically downloaded by
firebase_core
If you need to maintain the current dependency version, you can add the dependency override to your root
pubspec.yaml
to fix this too.If you use multiple local packages in your project, this makes it so you don’t have to update all your
pubspec.yaml
filesAs of 10/6/22, there was an update with breaking changes. So you can run the following script to update your dependencies their next major versions.
After adding this, run the following commands to update the iOS project’s pods
Keep it simple, just update the Firebase dependencies.
If you have multiple firebase dependencies you can do as follows
and then run
Changing the compileSdkVersion to 33 solved the issue for me,
In the
app/build.gradle
Update firebase_cli to latest version
For macOS
Then activate firebase_cli globally
Then update flutterfire
Then upgrade all flutter packages
Also, stay on firebase_core: 2.1.1
Reference : https://github.com/firebase/flutterfire/issues/9806
When it comes to errors that sound like this:
Then indeed the issue is related to using older versions of the
firebase_core_platform_interface
. By the time I’m answering this question, the latest version is4.5.2
:So the general recommendation is to always use the latest versions.
Where can you find the newer versions that are released?
In the official documentation that exists in the link below:
Where should you place it?
In the
pubspec.yaml
file.How to update to the latest version by command line?
I was facing the same problem while using
But the problem is solved in
solve my problem updating my firebase dependenceses
It happens because you have upgraded the flutter SDK but not the associated packages which are compatible with it.
Go to "pub.dev" and update the versions in all the firebase products (e.g. firebase_core, firebase_auth, etc) to the latest available package.
Just updating the "firebase_core_platform_interface" might not solve future problems in production.
Root cause
You are update or installing only a subset of the Firebase plugins (firebase_core, firebase_analytics,…)
Solution
Solution 1: (preferred) Updating to the latest version with flutterfire update check the docs here. But it is not easily because your project will have a lot of packages dependencies to each other like flutter version 2 or 3, so on. Anyway, it is long term solution.
Solution 2: (Fix to run) You can add to your pubspec.yaml
Solution 3: (Fix to run) Update dependencies with this below command line:
Finally, Run the project again by following stuffs:
That’s it!
Updating firebase packages to the latest versions solved this issue.
So this error occurred because I was following an old course. I simply went and ran these two commands to solve the issue
I did get the same error. Problem seems to be with firebase packages, maybe bug or break in version. You can try any one of below:
OR
Please check this answer as well
Upgrade
firebase_core
,firebase_storage
,cloud_firestore
,firebase_auth
etc. (firebase packages) one by one, by using the following commandflutter pub upgrade [package_name]
. Hopefully this helps.Add in pubspc.yaml
Then go to pubspec.lock
edit
To
Then
Write in terminal
Then
If none of the previous solutions works,
simply change the cache file [firebase_app.dart] like below,
FirebaseAppPlatform.verifyExtends(_var) to FirebaseAppPlatform.verify(_var)
It works like a charm, if didn’t work for you then revert the change you made.