Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
340 views
in Technique[技术] by (71.8m points)

android - How to solve the error "Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs"

I am getting the following error:

Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth/

Though I have included recent version firebase authentication in my gradle file:

compile 'com.google.firebase:firebase-auth:9.0.2'

This code was working fine in one my firebase project. But after adding this into another project in firebase,I'm facing the error.Please help me out.

            myFirebaseRef.createUser(
                    doctor.getEmail(),
                    doctor.getPass(),
                    new Firebase.ValueResultHandler<Map<String, Object>>() {
                        @Override
                        public void onSuccess(Map<String, Object> stringObjectMap) {
                            doctor.setId(stringObjectMap.get("uid").toString());
                            doctor.saveUser(myFirebaseRef);
                            Doctor_info doc=new Doctor_info();
                            doc.setGender(gender);

                            myFirebaseRef.child("doctor_info").push().setValue(doc);

                            myFirebaseRef.unauth();
                            Toast.makeText(getApplicationContext(), "Your Account has been Created", Toast.LENGTH_LONG).show();
                            Toast.makeText(getApplicationContext(), "Please Login With your Email and Password", Toast.LENGTH_LONG).show();

                            finish();
                        }
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...