【发布时间】:2022-01-07 23:10:19
【问题描述】:
当项目已经处于运行状态时不会发生此错误。但是第二天我尝试运行相同的项目然后出现此错误。
FAILURE:构建失败并出现异常。
在哪里:构建文件 'D:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-3.2.0\android\build.gradle' 行:58
出了什么问题:评估项目“:firebase_auth”时出现问题。
无法加载脚本“D:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-3.2.0\android\user-agent.gradle”的编译类 来自缓存。
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
通过https://help.gradle.org获得更多帮助
17 秒后构建失败
异常:Gradle 任务 assembleDebug 失败,退出代码为 1 Exited (sigterm)
这是我的 pubspec.yml 依赖项
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
firebase_core: "^1.10.0"
firebase_auth: ^3.2.0
【问题讨论】:
标签: android firebase flutter firebase-authentication