AOSP Firebase initialisation error (FirebaseApp is not initialized in this process com.package.name)
问题 I'm trying to build a custom app into aosp build which uses Firebase database. I've included the firebase database( com.google.firebase.firebase_database ) along with all it's compile dependencies in Android.bp and build process is a success. However, when I launch the app, I always get this exception java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.package.name. Make sure to call FirebaseApp.initializeApp(Context) first. I have tried calling it in