Android Studio带有Firebase的红线 [英] Red lines in Android Studio with Firebase
本文介绍了Android Studio带有Firebase的红线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将Android Studio与Firebase连接,并且我有一些红线,我不知道为什么。我正在按照本教程中的说明进行操作:
试试这段代码:
private DatabaseReference mRef;
mRef = FirebaseDatabase.getInstance()。getReference();
I am trying to connect Android Studio with Firebase and I have some red lines and I don't know why. I am following instruction from this tutorial : https://www.youtube.com/watch?v=tOn5HsQPhUY
Could someone please tell me if I am doing something wrong and what?
Here is a picture of this
解决方案
the Problem is that these commands are from an older firebase Version. I recommend to take a look at the docs here:https://firebase.google.com/docs/database/android/start/
Try this code :
private DatabaseReference mRef;
mRef = FirebaseDatabase.getInstance().getReference();
这篇关于Android Studio带有Firebase的红线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文