Firebase没有';t返回用户

Firebase没有';t返回用户,firebase,flutter,dart,firebase-authentication,Firebase,Flutter,Dart,Firebase Authentication,我有一个与Firebase交互的AuthService类。然后在Signin.dart中,我想获取该用户,但每次获取该用户时都会遇到问题。我得到一个错误,显示Firebase无法发送用户 错误: 发生异常。平台异常 (平台异常(firebase_auth, com.google.firebase.FirebaseException:发生内部错误。 [错误403(禁止)!!1 *{空白:0;填充:0}html,代码{字体:15px/22px arial,无衬线}html{背景:#fff;颜色:#2

我有一个与Firebase交互的AuthService类。然后在Signin.dart中,我想获取该用户,但每次获取该用户时都会遇到问题。我得到一个错误,显示Firebase无法发送用户

错误:

发生异常。平台异常 (平台异常(firebase_auth, com.google.firebase.FirebaseException:发生内部错误。 [错误403(禁止)!!1

*{空白:0;填充:0}html,代码{字体:15px/22px arial,无衬线}html{背景:#fff;颜色:#222;填充:15px}正文{空白:7% 自动0;最大宽度:390px;最小高度:180px;填充:30px 0 15px}*> body{background:url(//www.google.com/images/errors/robot.png)100%5px 不重复;右填充:205px}p{margin:11px 0 22px;溢出:隐藏}ins{color:#777;文本装饰:无}a img{border:0}@媒体屏幕和 (最大宽度:772px){body{background:none;margin top:0;最大宽度:none;padding right:0}}}{logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) 无重复;左边距:-5px}@media-only屏幕和 (最小分辨率:192dpi){#logo{背景:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 无重复0%0%/100% 100%;-moz边框图像:url(//www.google.com/images/branding/googlelogo/2x/googlelogo\u color\u 150x54dp.png) 0}}@media only屏幕和 (-webkit最小设备像素比:2){#logo{背景:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 无重复;-webkit背景大小:100% 100%}}#徽标{显示:内联块;高度:54px;宽度:150px}

那是个错误你的客户没有 拥有获取URL的权限
/identitytoolkit/v3/relyingparty/signupNewUser
来自此 服务器。这就是我们所知道的。],{},null) 达特先生

import 'package:auth_flutter_coffe/Services/Auth.dart';
import 'package:flutter/material.dart';

class SignIn extends StatefulWidget {
  @override
  _SignInState createState() => _SignInState();
}

class _SignInState extends State<SignIn> {
  final AuthService _auth = AuthService();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.brown[700],
      appBar: AppBar(
        title: Text("SignIn"),
        centerTitle: true,
        backgroundColor: Colors.brown[900],
      ),
      body: Container(
        padding: EdgeInsets.symmetric(horizontal: 50.0, vertical: 50.0),
        child: RaisedButton.icon(
            onPressed: () async {
              dynamic result = await _auth.signInAnon();
              if (result == null) {
                print("You Have to be SignIn");
              } else {
                print("SignIn");
                print(result);
              }
            },
            icon: Icon(Icons.transit_enterexit),
            label: Text("SignIn")),
      ),
    );
  }
}
import'包:auth_flatter_coffe/Services/auth.dart';
进口“包装:颤振/材料.省道”;
类签名扩展StatefulWidget{
@凌驾
_SignInState createState()=>\u SignInState();
}
类_SignInState扩展状态{
最终AuthService_auth=AuthService();
@凌驾
小部件构建(构建上下文){
返回脚手架(
背景颜色:颜色。棕色[700],
appBar:appBar(
标题:文本(“签名”),
标题:对,
背景颜色:颜色。棕色[900],
),
主体:容器(
填充:边缘组。对称(水平:50.0,垂直:50.0),
子:RaisedButton.icon(
onPressed:()异步{
动态结果=等待_auth.signinano();
如果(结果==null){
打印(“您必须签名”);
}否则{
打印(“签名”);
打印(结果);
}
},
图标:图标(Icons.transit\u enterexit),
标签:文本(“签名”),
),
);
}
}

google service.json
build.gradle
文件中检查项目的id必须相同。

google service.json
build.gradle
文件中检查项目的id必须相同。

你是否正确地将firbase连接到了你的Flatter项目?是的,这不是我第一次这样做。那么你是否正确地将firbase连接到了你的颤振项目中?是的,这不是我第一次这样做。所以cofusedI不知道为什么,一个小时后它工作没有任何变化我不知道为什么,一个小时后它工作没有任何变化
import 'package:auth_flutter_coffe/Services/Auth.dart';
import 'package:flutter/material.dart';

class SignIn extends StatefulWidget {
  @override
  _SignInState createState() => _SignInState();
}

class _SignInState extends State<SignIn> {
  final AuthService _auth = AuthService();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.brown[700],
      appBar: AppBar(
        title: Text("SignIn"),
        centerTitle: true,
        backgroundColor: Colors.brown[900],
      ),
      body: Container(
        padding: EdgeInsets.symmetric(horizontal: 50.0, vertical: 50.0),
        child: RaisedButton.icon(
            onPressed: () async {
              dynamic result = await _auth.signInAnon();
              if (result == null) {
                print("You Have to be SignIn");
              } else {
                print("SignIn");
                print(result);
              }
            },
            icon: Icon(Icons.transit_enterexit),
            label: Text("SignIn")),
      ),
    );
  }
}