Firebase Database Error : Found Conflicting Getters For Name: Isaccessibilityfocusable
I am getting this error: Caused by: com.google.firebase.database.DatabaseException: Found conflicting getters for name: isAccessibilityFocusable while trying to update my User. T
Solution 1:
Your user contains a TextView
, which is a class that Firebase won't be able to serialize/deserialize.
To allow writing a class to the Firebase Database, make sure that it only contains properties of simple types or objects that you created: so called POJOs - Plain Old Java Objects.
Alternatively you can exclude the non-supported properties (such as the TextView
) by annotating them:
@ExcludepublicTextViewgetTextView() {
return textView;
}
@ExcludepublicvoidsetTextView(TextView textView) {
this.textView = textView;
}
Post a Comment for "Firebase Database Error : Found Conflicting Getters For Name: Isaccessibilityfocusable"