Error when cordova launch my app

Hello, I have a big problem. I execute the comand ionic cordova run android and all is OK. The build is success, howeer, when the app is launching, the app throw a message'nfortunately, app has stopped.
I have tried to see the logcat with adb locgat and the error is that:

java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process
Make sure to call FirebaseApp.initializeApp(Context) first.

I have never seen that error before and my app is the same, i have changed anything.
Please, could someone help me? Thank you.

*The command ionic serve works fine.

I have resolved this problem following the steps of this link: