What Does ' Com.google.firebase.database.DatabaseException: Serializing Arrays Is Not Supported, Please Use Lists Instead' Mean?
the main public class SignupCarrier extends AppCompatActivity { Button upProfile, upIDPhoto, upCriminalRecord, buttonSigningUp; private Uri mProfilePic, mIdPhoto,mCriminalRecord
Solution 1:
This is an array:
String[] pictureUrls = new String[picturesUrls.size()];
This is a list:
List<String> picturesUrls = new ArrayList<String>();
The error message says you can't serialize arrays - so try changing the array to a list in the object you want to serialize (the CarrierUser).
Post a Comment for "What Does ' Com.google.firebase.database.DatabaseException: Serializing Arrays Is Not Supported, Please Use Lists Instead' Mean?"