构建失败,颤振异常 - 'dart: html'

时间:2021-04-04 20:42:14

标签: flutter google-cloud-firestore import dependencies yaml

我的应用运行良好,但现在我遇到了这个问题:

FAILURE: Build failed with an exception.

* Where:
Script '/Users/username/Flutter/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991

it doesn't find dart html????
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/deejaymk/Flutter/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 27s
Exception: Gradle task assembleDebug failed with exit code 1

我的 yaml:

dependencies:
  flutter:
    sdk: flutter
  flutter_form_builder: ^5.0.0
  google_fonts: ^1.0.0
  url_launcher: ^6.0.3
  firebase_auth: ^0.14.0+5
  cloud_firestore: ^0.12.9+4

1 个答案:

答案 0 :(得分:0)

检查您的文件是否import:dart.html如果找到就删除它