【发布时间】:2019-11-05 00:55:19
【问题描述】:
我在编译显示的编译器时尝试使用flutter_stetho 包..
在为 x86 构建的 Android SDK 上以调试模式启动 lib/main.dart...
编译器消息:
file:///home/administrator/softwares/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_stetho-0.2.2/lib/src/http_client_response.dart:4:7: Error: The non-abstract class 'StethoHttpClientResponse' is missing implementations for these members:
- HttpClientResponse.compressionState
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 StethoHttpClientResponse extends StreamView<List<int>>
^^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1967:42: Context: 'HttpClientResponse.compressionState' is defined here.
HttpClientResponseCompressionState get compressionState;
^^^^^^^^^^^^^^^^
Compiler failed on /home/administrator/projects/mobile/sampleapp/lib/main.dart
FAILURE: Build failed with an exception.
* Where:
Script '/home/administrator/softwares/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 665
* What went wrong:
Execution failed for task ':app:compileflutterBuildDebugX86'.
> Process 'command '/home/administrator/softwares/flutter/bin/flutter'' 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 20s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
【问题讨论】:
-
如果找到包源,示例应用是否运行?
-
我已经在我的项目中使用了这个包,我尝试在示例应用程序中也显示相同的错误显示......这发生在过去一两个月内
-
您需要联系包作者,或者自己修复它并向他们发送拉取请求。
-
好的,理查德·赫普
标签: flutter flutter-dependencies