小编Ama*_*dar的帖子

Flutter Firebase Auth 包出现“错误:找不到成员”

 /Flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:14:11: Error: Member not found: 'Error.throwWithStackTrace'.\n Error.throwWithStackTrace(exception, stackTrace);\n       ^^^^^^^^^^^^^^^^^^^\n/Flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:17:9: Error: Member not found: 'Error.throwWithStackTrace'.\nError.throwWithStackTrace(\n     ^^^^^^^^^^^^^^^^^^^\n/D:/Flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:12:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.\n\nNever convertPlatformException(Object exception, StackTrace stackTrace) {\n   ^\nFAILURE: Build failed with an exception.\n
Run Code Online (Sandbox Code Playgroud)\n

我的 pubsec.yaml 只有:

\n
    \n
  • 云火存储:
  • \n
  • firebase_核心:
  • \n
  • uuid:
  • \n
  • firebase_auth:^3.3.8
  • \n
  • 提供者:^6.0.2
  • \n
\n

导入 firebase 包后出现此错误。

\n
Doctor summary (to see all details, run flutter doctor -v):\n[\xe2\x88\x9a] Flutter (Channel master, 2.6.0-12.0.pre.657, on Microsoft Windows [Version …
Run Code Online (Sandbox Code Playgroud)

firebase firebase-authentication flutter google-cloud-firestore

15
推荐指数
2
解决办法
2万
查看次数