Firebase Databseerror Only After App Is Relesased To Google Play - Android
I'm making an app that uses the firebase database. My app was working with no crashes, until I released it as beta on google play. When I released the app it kept crashing and retu
Solution 1:
The POJO getter/setter methods must be public
:
publicclassCardSet {
privateString name;
privateArrayList<String> words;
publicCardSet(String name, ArrayList<String> words){
this.name = name;
this.words = words;
}
publicStringgetName() { // changed from protectedreturn name;
}
publicArrayList<String> getWords(){ // changed from protectedreturn words;
}
}
And when building for release with minifyEnabled
, Proguard must be configured to retain POJO classes. This is described in the Realtime Database for Android Setup Guide:
# Add this global rule
-keepattributes Signature
# This rule will properly ProGuard all the model classes in# the package aheschl.studyup.
-keepclassmembers classaheschl.studyup.** {
*;
}
Post a Comment for "Firebase Databseerror Only After App Is Relesased To Google Play - Android"