close

使用FireBase RealTime DataBase時

如果要傳送物件發生了No properties to serialize found on class的Exception

代表你傳送的物件需要設定成公開或是要有getter和Setter

 

1. 錯誤訊息如下

01.png

 

2. 將欄位改成public即可

02.png

 

3. 也可參考stack overflow: https://stackoverflow.com/questions/37743661/firebase-no-properties-to-serialize-found-on-class

03.png  

arrow
arrow
    文章標籤
    No properties to serialize
    全站熱搜

    RX1226 發表在 痞客邦 留言(0) 人氣()