auto-value-parcel
auto-value-parcel copied to clipboard
error: Maps can only have String objects for keys and valid Parcelable types for values.
Here is my declaration
@SerializedName("extra_data")
public abstract @Nullable Map<String, JsonElement> storeExtraData();
error: Maps can only have String objects for keys and valid Parcelable types for values.
can somebody share how we can handle this error on build.
JsonElement
is not Parcelable
or Serializable
and thus cannot be used. You'll have to wrap it into something that can be parceled or serialized.