I am trying to persist a custom object using the following code:
DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference(); Databas
Add @Exclude to the functions that FB tries to interpret, like those that return a Drawable.
@Exclude public Drawable getUnitColorImage(){ return TextDrawable.builder().buildRound("", prefColor); }