Luke Luke - 1 year ago 414
Android Question

Enabling offline capabilities throws "java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist."

I'm attempting to migrate my app to Firebase 3. I'm attemping to enable data persistence in my Application class using the following line of code:


However, the following exception is thrown and the app crashes:

java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist.

All other features are working as expected, has anyone else got this working?

Answer Source

Remove or comment this line in your build.gradle:

compile ''