Firebase's AndroidChat example: Failed to bounce to type

后端 未结 4 1067
情深已故
情深已故 2020-12-18 17:00

This question is also trying to find out the answer for this question that I posted several days ago.

The weird thing about the AndroidChat app is when I changed the

4条回答
  •  盖世英雄少女心
    2020-12-18 17:25

    It looks like you have only changed on chat message, not all of them. When the code attempts to deserialize a message that you haven't changed to author2, it cannot find the author field and throws an exception.

    Try either changing all of the messages to author2, or clear out your data and start over with the new field names.

提交回复
热议问题