在调试模式下在 sdk gphone64 arm64 上启动 lib/main.dart...运行 Gradle 任务 'assembleDebug'... ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface- 6.2.0/lib/src/method_channel/utils/exception.dart:14:11:错误:找不到成员:“Error.throwWithStackTrace”。Error.throwWithStackTrace(异常,stackTrace); ^^^^^^^^^^^^^^^^^^^^ ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/ src/method_channel/utils/exception.dart:17:9:错误:找不到成员:“Error.throwWithStackTrace”。Error.throwWithStackTrace( ^^^^^^^^^^^^^^^^^^^^ ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2. 0/lib/src/method_channel/utils/exception.dart:12:7:错误:必须返回非空值,因为返回类型“Never”不允许为 null。Never ConvertPlatformException(对象异常,StackTrace stackTrace) { ^ ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/method_channel_firestore.dart:112:15:错误:找不到成员: 'Error.throwWithStackTrace'.Error.throwWithStackTrace( ^^^^^^^^^^^^^^^^^^^^ ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang .org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/utils/exception.dart:14:11:错误:找不到成员:'Error.throwWithStackTrace'。Error.throwWithStackTrace(异常,stackTrace); ^^^^ ^^^^^^^^^^^^^^^ ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/ utils/exception.dart:17:9:错误:找不到成员:“Error.throwWithStackTrace”。Error.throwWithStackTrace( ^^^^^^^^^^^^^^^^^^^^ ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5。 0/lib/src/method_channel/utils/exception.dart:12:7:错误:必须返回非空值,因为返回类型“Never”不允许为 null。Never ConvertPlatformException(对象异常,StackTrace stackTrace) { ^
失败:构建失败并出现异常。
- 出了什么问题:任务“:app:compileFlutterBuildDebug”执行失败。进程“命令”/Users/omair/Downloads/flutter/bin/flutter”以非零退出值 1 完成
- 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
- 在https://help.gradle.org获取更多帮助
13 秒内构建失败异常:Gradle 任务 assembleDebug 失败,退出代码 1'''
知道这里出了什么问题吗?尝试使用不同版本的 firebase_auth 但没有解决。
当前版本是:
firebase_core:^1.12.0 firebase_analytics:^9.1.0 firebase_auth:^3.3.7 firebase_dynamic_links:^4.0.6 cloud_firestore:^3.1.9 fluttertoast:^8.0.9
谢谢 :)