0

I have made two activities Register and Signin, but when I run my code it crashes with the following error message:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.firebasemessagingapp/com.example.firebasemessagingapp.LoginActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.firebasemessagingapp. Make sure to call FirebaseApp.initializeApp(Context) first

Dave
  • 5,108
  • 16
  • 30
  • 40

1 Answers1

0

Add this line in your onCreate Of activity

FirebaseApp.initializeApp(Context) 
Sandeep Parish
  • 1,888
  • 2
  • 9
  • 20