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

前端 未结 7 641
北海茫月
北海茫月 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:17

    if u are using map object in your database should use get method directly with your object

    doc: DocumentSnapshot val data = doc.get("location", SaleLocations::class.java)

提交回复
热议问题