Firebase database getInstance crashes app

大兔子大兔子 提交于 2019-11-29 11:04:07
Vihaan Verma

Download google-services.json from Project Settings in the Firebase console. My mistake was downloading it from https://developers.google.com/mobile/add.

colour Blue

mFirebaseDatabaseReference = database.getInstance().getReference("root-element in firebase");

When you call getReference you need to provide a URL. If your project is bound already in Firebase with the database you have created, use the root element of the data in Firebase as the parameter to getReference().

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!