Launching lib/main.dart on HEY W09 in debug mode...
Running Gradle task 'assembleDebug'...
../../../../../.pub-cache/hosted/pub.flutter-io.cn/dokit-0.8.2-nullsafety.10/lib/engine/dokit_http.dart:26:7: Error: The non-abstract class 'DoKitHttpClient' is missing implementations for these members:
- HttpClient.connectionFactory=
- HttpClient.keyLog=
Try to either - provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class DoKitHttpClient implements HttpClient {
^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1430:12: Context: 'HttpClient.connectionFactory=' is defined here.
void set connectionFactory(
^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1580:12: Context: 'HttpClient.keyLog=' is defined here.
void set keyLog(Function(String line)? callback);
^^^^^^
../../../../../.pub-cache/hosted/pub.flutter-io.cn/dokit-0.8.2-nullsafety.10/lib/kit/apm/crash_kit.dart:156:28: Error: The method 'FlatButton' isn't defined for the class 'LogPageState'.
- 'LogPageState' is from 'package:dokit/kit/apm/crash_kit.dart' ('../../../../../.pub-cache/hosted/pub.flutter-io.cn/dokit-0.8.2-nullsafety.10/lib/kit/apm/crash_kit.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
child: FlatButton(
^^^^^^^^^^
../../../../../.pub-cache/hosted/pub.flutter-io.cn/dokit-0.8.2-nullsafety.10/lib/kit/apm/crash_kit.dart:176:28: Error: The method 'FlatButton' isn't defined for the class 'LogPageState'. - 'LogPageState' is from 'package:dokit/kit/apm/crash_kit.dart' ('../../../../../.pub-cache/hosted/pub.flutter-io.cn/dokit-0.8.2-nullsafety.10/lib/kit/apm/crash_kit.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
child: FlatButton(
^^^^^^^^^^
FAILURE: Build failed with an exception.
Where:
Script '/Users/sn/fvm/versions/3.3.10/packages/flutter_tools/gradle/flutter.gradle' line: 1159What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/sn/fvm/versions/3.3.10/bin/flutter'' finished with non-zero exit value 1Try:
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 18s
Exception: Gradle task assembleDebug failed with exit code 1
2条答案
按热度按时间pb3s4cty1#
same question
vecaoik12#
same problem