首页 > 解决方案 > 构建失败,出现异常 - 'dart:html'

问题描述

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

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

标签: fluttergoogle-cloud-firestoreimportdependenciesyaml

解决方案


import:dart.html如果找到它,请检查您的文件以删除它


推荐阅读