DatabaseException: Can't convert object of type java.lang.String to type

前端 未结 7 665
北海茫月
北海茫月 2020-12-03 18:50

I\'ve looked at a few other answers for similar problems but don\'t understand why mine isn\'t working.

I\'m trying to get my app to read commands from Firebase and

7条回答
  •  我在风中等你
    2020-12-03 19:11

    you can use constructor oop normally like this

    it's the same and no Error anymore

    CommandObject command = new CommandObject(ds.child("").getValue()....
    

    fill it and make sure your reference in firebase data should not be empty

提交回复
热议问题