You have reached the perfect location if you’ve run across the “Flutter Member not found: FirebaseAppPlatform.verifyExtends” issue in Android and Flutter mobile App development . We are here to walk you through each step of fixing this issue. We’ll talk about the following topics in this article:

#How to set up Firebase in Flutter

#What Causes This Error?

Flutter Member not found: FirebaseAppPlatform.verifyExtends

When you integrating Firebase and you have upgraded your Flutter plugins, this problem frequently occurs. Unfortunately, it could initially appear a little confusing because there isn’t an obvious reason why it happens. There is no need to panic, though, as we can deal with this situation quickly.

Error Message Look Like:

Launching lib\main.dart on sdk gphone x86 in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
/C:/flutter_windows_2.10.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verifyExtends'.
    FirebaseAppPlatform.verifyExtends(_delegate);
                        ^^^^^^^^^^^^^
 

FAILURE: Build failed with an exception.

* Where:
Script 'C:\flutter_windows_2.10.5-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter_windows_2.10.5-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 26s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

#How Can This Error Be Fixed?

Follow these simple steps :

  1. Open your pubspec.yaml file.
  2. Under the dependencies section, add the following lines:
firebase_core_platform_interface: 4.5.1
firebase_messaging: ^13.0.4
  1. After adding these lines, save the pubspec.yaml file.
  2. Next, run the following commands in your project directory:
  • flutter clean
  • flutter pub get
  • flutter pub upgrade
  1. Finally, run your app again.

Leave a Reply

Your email address will not be published. Required fields are marked *