mk-5 / gdx-fireapp

libGDX Firebase API
Apache License 2.0
63 stars 21 forks source link

Default FirebaseApp is not initialized in this process com.mygdx.game. Make sure to call FirebaseApp.initializeApp(Context) first. #22

Closed PandlaS closed 5 years ago

PandlaS commented 5 years ago

Describe the bug I am getting this message: Default FirebaseApp is not initialized in this process com.mygdx.game. Make sure to call FirebaseApp.initializeApp(Context) first.

To Reproduce

Json File: android/google-services.json

@Override public void create () { batch = new SpriteBatch(); img = new Texture("badlogic.jpg"); GdxFIRApp.inst().configure(); GdxFIRDatabase.inst() .inReference("/user") .push() .setValue(new User("Bob", "bob@bob.com"));

}

Expected behavior A clear and concise description of what you expected to happen.

Platform (please check one of the following):

Smartphone (please complete the following information only if platform is Android or iOS):

PandlaS commented 5 years ago

it was missing 'google play' from class path. Thanks

mk-5 commented 5 years ago

no problem, if any other problems occur or you need some new feature to be covered - please let me know :)