Firebase数据库无法正常工作

Firebase数据库无法正常工作

本文介绍了发布应用程序播放商店后,Firebase数据库无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题.我已经在android studio中编码了应用.发布应用程序以播放商店后,firebase数据库根本无法工作.我在Firebase控制台项目设置中添加了SHA1键,这可能是什么问题?

I have a problem. I've coded app in android studio. After publishing app to play store, firebase database doesn't work at all. I added SHA1 key to firebase console project settings, what can be wrong?

任何帮助表示赞赏.

我从这里获取了SHA1密钥:

I took SHA1 key from here:

推荐答案

我找到了解决方案,但这很奇怪.我在其中存储所有数据的类中的变量在此处输入图像描述不是私有的.在我将私有修饰符添加到所有变量后,问题得到解决在此处输入图像描述

I found solution, it's very weird though. The variables in class where i stored all the data enter image description here were not private. After i add private modifier to all variables problem was solved enter image description here

这篇关于发布应用程序播放商店后,Firebase数据库无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 19:58