简体   繁体   中英

setValue method error in firebase database creation (android studio0

I created a new project from scratch in android studio and tried connecting it to the firebase by following steps provided in help>firebase>database.

I got green checked for connecting app to firebase but I set up dependencies correctly . however I get setvalue method error.

I have attached a screenshot.

屏幕截图

Capitalisation is very important.

myRef.setvalue("Hello World"); // this will not work
myRef.setValue("Hello World"); // this will work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM