Android Kotlin firebase.database.DatabaseException: No properties to serialize found on class

前端 未结 3 1932
北荒
北荒 2020-12-22 13:44

I have followed the advice of other SO solution: 1. Make my class Serializeable 2. Have a default constructor for Firebase 3. Update my proguard rules (Not sure about this o

3条回答
  •  失恋的感觉
    2020-12-22 14:16

    If you got the issue on release apk then Do like this in your proguard file

        -keepattributes Signature
    
        -keepclassmembers class com.yourcompany.models.** {
          *;
        }
    

提交回复
热议问题