Все работало отлично. Затем я ушел, а когда вернулся, я получаю ЭТО, когда пытаюсь запустить свое приложение. Я установил точки останова, но, похоже, он не доходит до моей основной процедуры.
начало вывода ошибки
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.14.0/lib/src/screens/internal/multi_provider_screen.dart:25:14: Error: A value of type 'List?' can't be returned from a function with return type 'List' because 'List?' is nullable and 'List' isn't.
- 'List' is from 'dart:core'.
- 'AuthProvider' is from 'package:firebase_ui_auth/src/providers/auth_provider.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.14.0/lib/src/providers/auth_provider.dart').
- 'AuthListener' is from 'package:firebase_ui_auth/src/providers/auth_provider.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.14.0/lib/src/providers/auth_provider.dart').
- 'AuthCredential' is from 'package:firebase_auth_platform_interface/src/auth_credential.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_platform_interface-7.1.8/lib/src/auth_credential.dart').
return _providers;
^
../../AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-13.0.0/lib/src/vm_service.dart:314:30: Context: '_disposeHandler' couldn't be promoted because field promotion is only available in Dart 3.2 and above.
See http://dart.dev/go/non-promo-field-promotion-unavailable
late final DisposeHandler? _disposeHandler;
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Flutter-Dart\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 14s
Error: Gradle task assembleDebug failed with exit code 1
Вот что я пробовал до сих пор, но безуспешно:
pub get/update
очистить и перестроить флаттер
выйти из проекта, перезапустить Windows
удалить проект и извлечь заведомо исправную копию из github (все равно получить та же ошибка!)
Все работало отлично. Затем я ушел, а когда вернулся, я получаю ЭТО, когда пытаюсь запустить свое приложение. Я установил точки останова, но, похоже, он не доходит до моей основной процедуры. начало вывода ошибки [code]Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... ../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.14.0/lib/src/screens/internal/multi_provider_screen.dart:25:14: Error: A value of type 'List?' can't be returned from a function with return type 'List' because 'List?' is nullable and 'List' isn't. - 'List' is from 'dart:core'. - 'AuthProvider' is from 'package:firebase_ui_auth/src/providers/auth_provider.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.14.0/lib/src/providers/auth_provider.dart'). - 'AuthListener' is from 'package:firebase_ui_auth/src/providers/auth_provider.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.14.0/lib/src/providers/auth_provider.dart'). - 'AuthCredential' is from 'package:firebase_auth_platform_interface/src/auth_credential.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_platform_interface-7.1.8/lib/src/auth_credential.dart'). return _providers; ^ [/code] конец вывода ошибки [code]../../AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-13.0.0/lib/src/vm_service.dart:314:30: Context: '_disposeHandler' couldn't be promoted because field promotion is only available in Dart 3.2 and above. See http://dart.dev/go/non-promo-field-promotion-unavailable late final DisposeHandler? _disposeHandler; ^ Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command 'C:\Flutter-Dart\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 14s Error: Gradle task assembleDebug failed with exit code 1 [/code] Вот что я пробовал до сих пор, но безуспешно: [list] [*]pub get/update [*]очистить и перестроить флаттер [*]выйти из проекта, перезапустить Windows [*]удалить проект и извлечь заведомо исправную копию из github (все равно получить та же ошибка!) [/list]