Am getting this error while trying to save an Object on the Firebase
database that has an Asset
property.
Similar errors have been documented in the following questions:
Firebase No properties to serialize found on class
Firebase No properties to serialize found with object in release mode
and a few others.
Some of the solutions recommended are to
- Change variable declarations to public
- Add
@Keep
to the class declaration - Add
-keepclassmembers class com.yourcompany.models.** { *; }
in Proguard-rules
but none of these options have worked for me.
What I've tried is create another class that is a replica of the class am using for Vault
and then have a String
property that holds the URL
of the Asset
but this seems like duplication of code and unnecessary.
Is there a solution to this problem?