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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…