Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

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 `` console error

I tried running flutter clean and then flutter pub get but it doesn't seem to work

like image 268
Sarcoss Avatar asked Oct 24 '25 16:10

Sarcoss


2 Answers

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.

like image 185
Mohamed dayaa zellagui Avatar answered Oct 26 '25 07:10

Mohamed dayaa zellagui


I had macOS Monterey and upgrade to Ventrua worked for me.

like image 25
Oskar Gąsior Avatar answered Oct 26 '25 07:10

Oskar Gąsior