0
I have a fragment that performs user registration and login using Firebase. However, I’m having trouble with the initializeApp(Context) method. Follows the code:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
rootView = inflater.inflate(R.layout.fragment_perfil, container, false);
FirebaseApp.initializeApp(getContext());
mAuth = FirebaseAuth.getInstance();
the error message:
Default Firebasepp is not initialized in this process com.redentor.Mikha.scientia. Make sure to call Firebasepp.initializeApp(Context) first. at com.google.firebase.FirebaseApp.getInstance(Unknown Source)
You can post your grandle ?
– Dev