Мои коды, которые работали нормально 2 месяца назад, теперь выдают ошибку. Код ошибки ниже. Что я должен делать?
Launching lib\main.dart on Android SDK built for x86 in debug mode...
lib\main.dart:1
/C:/src/flutter/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);
^^^^^^^^^^^^^
2
FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\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
BU�LD FAILED in 32s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Добавьте это в свои зависимости pubspec.yaml:
firebase_core_platform_interface: 4.5.1
Вы можете разместить его firebase_core
вот так:
firebase_core: ^1.21.0
firebase_core_platform_interface: 4.5.1
Судя по вашей ошибке, ошибка похожа на этот вопрос stackoverflow.com/questions/74226250/…