Luke Luke - 10 months ago 344
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?


Remove or comment this line in your build.gradle:

compile ''