草庐IT

flutter - 错误 Flutter Firebase Auth 和 Google 登录

我有2个flutter应用程序作为我的学习。他们都使用firebaseauth和google使用完全相同的代码登录。我设法从这个url复制了这个片段但是有不同的firebase应用程序。第一个应用程序完全运行良好。但第二个有点神秘。我不知道为什么会出现此错误E/MethodChannel#plugins.flutter.io/firebase_auth(9042):FailedtohandlemethodcallE/MethodChannel#plugins.flutter.io/firebase_auth(9042):java.lang.NullPointerException:At

flutter - 错误 Flutter Firebase Auth 和 Google 登录

我有2个flutter应用程序作为我的学习。他们都使用firebaseauth和google使用完全相同的代码登录。我设法从这个url复制了这个片段但是有不同的firebase应用程序。第一个应用程序完全运行良好。但第二个有点神秘。我不知道为什么会出现此错误E/MethodChannel#plugins.flutter.io/firebase_auth(9042):FailedtohandlemethodcallE/MethodChannel#plugins.flutter.io/firebase_auth(9042):java.lang.NullPointerException:At

golang gocql 无法连接到 127.0.0.1 :9042 not enough bytes to read header require 9 got: 8

我在尝试编译时遇到此错误:packagemainimport"fmt"import"log"import"github.com/gocql/gocql"var(name,sexstringageint)funcmain(){//connecttotheclustercluster:=gocql.NewCluster("127.0.0.1")cluster.Keyspace="dbaccess"session,_:=cluster.CreateSession()defersession.Close()cluster.ProtoVersion=4iferr:=session.Query("