flutter - 构建失败,出现异常 - '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
解决方案
import:dart.html
如果找到它,请检查您的文件以删除它
推荐阅读
- c++ - docker 容器中的可执行文件不会从 gdb 远程调试中注册断点
- javascript - 刷新页面时 JavaScript 停止工作
- uno-platform - Uno.Material 是否应该安装在预发布的 Uno 中?
- jdbc - Athena最新的JDBC驱动jar AthenaJDBC42_2.0.14
- c - 为什么子线程中不能释放父进程的malloced内存空间?
- java - 如何使用类路径中的文件?
- jetbrains-ide - JetBrains Rider 停止在导航上打开差异标签
- c# - 如何在 Unity 中为脚本化变换动画添加缓动?
- elasticsearch - 弹性搜索子字符串搜索
- r - 在 R 中编写函数:将统计信息的名称(作为变量)粘贴为列名