I am trying to compile my app in flutter, but when I do it, I get the following error in the console.
I tried running flutter clean and then flutter pub get but it doesn't seem to work
Warning: elemento inesperado (URI:"", local:"base-extension"). Los elementos esperados son <{}codename>,<{}layoutlib>,<{}api-level>
/C:/src/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:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.
Process 'command 'C:\src\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 4m 16s
Running Gradle task 'assembleRelease'... 262.0s
Gradle task assembleRelease failed with exit code 1
``

I tried running flutter clean and then flutter pub get but it doesn't seem to work
Go to dependencies in pubspec.yaml and click on 'pub upgrade' ... the last versions of dependencies will appear in terminal ... increase your firebase packages to the new versions ... I try it and it works with me.
I had macOS Monterey and upgrade to Ventrua worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With