Switching Activity To Firebase- App Shuts Down
I have a problem switching activity when a user would click on a link from MainActivity, the app will just shut down, i am not sure if i have a problem with the project structure
Solution 1:
This exception:
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.we4x4.we4x4/net.we4x4.we4x4.LoginFragment}: java.lang.IllegalStateException: For a custom firebase host you must first set your authentication server before using authentication features!
Comes from this line:
mFirebaseRef = new Firebase(getResources().getString(R.string.firebase_url));
The reason is that firebase_url
is not in the form https://yours.firebaseio.com
.
Post a Comment for "Switching Activity To Firebase- App Shuts Down"