为了账号安全,请及时绑定邮箱和手机立即绑定

无法构建项目

无法构建项目

慕慕森 2022-12-29 10:29:47
当我尝试构建这个项目时,我在控制台中打印了这个错误。但是,当我尝试构建其他项目时,没有发生任何错误。这是为什么?2 天前一切正常。这是错误,unning "flutter pub get" in SampleApp...Launching lib\main.dart on Android SDK built for x86 in debug mode.../E:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.3.0/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'import 'dart:html';       ^/E:/flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.2/lib/js.dart:8:1: Error: Not found: 'dart:js'export 'dart:js' show allowInterop, allowInteropCaptureThis;^/E:/flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.2/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'export 'dart:js_util';^/E:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.class PictureStream with DiagnosticableMixin {                         ^^^^^^^^^^^^^^^^^^^/E:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.abstract class PictureStreamCompleter with DiagnosticableMixin {                                           ^^^^^^^^^^^^^^^^^^^FAILURE: Build failed with an exception.* Where:Script 'E:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 896* What went wrong:Execution failed for task ':app:compileFlutterBuildDebug'.> Process 'command 'E:\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.orgBUILD FAILED in 4m 13sException: Gradle task assembleDebug failed with exit code 1Exited (sigterm)我试过跑步flutter clean,但没有用。
查看完整描述

1 回答

?
偶然的你

TA贡献1841条经验 获得超3个赞

它的发生是因为“firebase”包。

我认为其中有一些错误。


查看完整回答
反对 回复 2022-12-29
  • 1 回答
  • 0 关注
  • 59 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信