The following two lines keep crashing my code. I am trying to access information from the firebase database but it keeps crashing. I have verified the Json file and it is the latest. This is the error i am getting.
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process "projectname" Make sure to call FirebaseApp.initializeApp(Context) first.
// FirebaseApp.initializeApp(this);
// mSoftwareDatabase = FirebaseDatabase.getInstance().getReference("Software");