-
Notifications
You must be signed in to change notification settings - Fork 57
Description
错误信息
Launching lib/weiguan/main.dart on Redmi K20 Pro in debug mode...
/D:/fluttersdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/dio-2.2.2/lib/src/dio_http_headers.dart:55:8: Error: The method 'DioHttpHeaders.add' has fewer named arguments than those of overridden method 'HttpH
eaders.add'.
void add(String name, value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:698:8: Context: This is the overridden method ('add').
void add(String name, Object value,
^
/D:/fluttersdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set' has fewer named arguments than those of overridden method 'HttpH
eaders.set'.
void set(String name, Object value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:707:8: Context: This is the overridden method ('set').
void set(String name, Object value,
^
lib/weiguan/container.dart:68:41: Error: The argument type 'Logger Function(dynamic)' can't be assigned to the parameter type 'Logger Function()'.
- 'Logger' is from 'package:logging/src/logger.dart' ('/D:/fluttersdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/logging-0.11.4/lib/src/logger.dart').
_injector.registerSingleton((injector) {return Logger('app');}, dependencyName: 'app');
^
lib/weiguan/container.dart:69:41: Error: The argument type 'Logger Function(dynamic)' can't be assigned to the parameter type 'Logger Function()'. - 'Logger' is from 'package:logging/src/logger.dart' ('/D:/fluttersdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/logging-0.11.4/lib/src/logger.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:72:41: Error: The argument type 'Logger Function(dynamic)' can't be assigned to the parameter type 'Logger Function()'. - 'Logger' is from 'package:logging/src/logger.dart' ('/D:/fluttersdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/logging-0.11.4/lib/src/logger.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:90:42: Error: The argument type 'WgTheme Function(dynamic)' can't be assigned to the parameter type 'WgTheme Function()'. - 'WgTheme' is from 'package:flutter_in_practice/weiguan/ui/theme.dart' ('lib/weiguan/ui/theme.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:100:44: Error: The argument type 'AppState Function(dynamic)' can't be assigned to the parameter type 'AppState Function()'. - 'AppState' is from 'package:flutter_in_practice/weiguan/ui/redux/state/app.dart' ('lib/weiguan/ui/redux/state/app.dart').
_injector.registerDependency((injector) {
^
lib/weiguan/container.dart:112:50: Error: The argument type 'Store Function(dynamic)' can't be assigned to the parameter type 'Store Function()'. - 'Store' is from 'package:redux/src/store.dart' ('/D:/fluttersdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/redux-3.0.0/lib/src/store.dart').
- 'AppState' is from 'package:flutter_in_practice/weiguan/ui/redux/state/app.dart' ('lib/weiguan/ui/redux/state/app.dart').
_injector.registerSingleton<Store>((injector) {
^
lib/weiguan/container.dart:122:49: Error: The argument type 'WeiguanService Function(dynamic)' can't be assigned to the parameter type 'WeiguanService Function()'. - 'WeiguanService' is from 'package:flutter_in_practice/weiguan/usecase/port/service/weiguan.dart' ('lib/weiguan/usecase/port/service/weiguan.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:159:47: Error: The argument type 'UserUsecases Function(dynamic)' can't be assigned to the parameter type 'UserUsecases Function()'. - 'UserUsecases' is from 'package:flutter_in_practice/weiguan/usecase/user.dart' ('lib/weiguan/usecase/user.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:163:47: Error: The argument type 'PostUsecases Function(dynamic)' can't be assigned to the parameter type 'PostUsecases Function()'. - 'PostUsecases' is from 'package:flutter_in_practice/weiguan/usecase/post.dart' ('lib/weiguan/usecase/post.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:177:48: Error: The argument type 'BasePresenter Function(dynamic)' can't be assigned to the parameter type 'BasePresenter Function()'. - 'BasePresenter' is from 'package:flutter_in_practice/weiguan/adapter/presenter/base.dart' ('lib/weiguan/adapter/presenter/base.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:185:48: Error: The argument type 'UserPresenter Function(dynamic)' can't be assigned to the parameter type 'UserPresenter Function()'. - 'UserPresenter' is from 'package:flutter_in_practice/weiguan/adapter/presenter/user.dart' ('lib/weiguan/adapter/presenter/user.dart').
_injector.registerSingleton((injector) {
^
lib/weiguan/container.dart:194:48: Error: The argument type 'PostPresenter Function(dynamic)' can't be assigned to the parameter type 'PostPresenter Function()'. - 'PostPresenter' is from 'package:flutter_in_practice/weiguan/adapter/presenter/post.dart' ('lib/weiguan/adapter/presenter/post.dart').
_injector.registerSingleton((injector) {
^
FAILURE: Build failed with an exception.
-
Where:
Script 'D:\fluttersdk\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904 -
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'D:\fluttersdk\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 56s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 58.5s
Exception: Gradle task assembleDebug failed with exit code 1