¿Como soluciono el firebase身份验证吗?

时间:2019-04-09 15:09:35

标签: flutter

导入程序包“程序包:firebase_auth / firebase_auth.dart”;我收到一个错误消息,我已经用ctrl + shift + p .... get软件包下载了所有flutter软件包。

enter image description here

1 个答案:

答案 0 :(得分:0)

firebase_auth 添加到项目 pubspec.yaml 文件中的依赖项。

由于屏幕截图中的错误显示:“ URI的目标不存在:'package:firebase_auth / firebase_auth.dart'”,这表明您尚未将firebase_auth添加到项目的pubspec.yaml文件中的依赖项如以下屏幕截图的第23行所示:

paubspec.yaml dependencies

此文件中每行的缩进非常重要,因此请确保它们匹配。