-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parceler fails when used with with Lifecycle-viewmodel 2.2.0 #382
Comments
What object are you annotating with |
Different person, same project :) I have done some digging and I am pretty sure this is our culprit.
Do you have some insight into a workaround we could use? |
Hi @maraisf! Parceler will attempt to serialize everything, including data members of the inherited classes. I'd recommend avoiding extending things like the |
Thanks for the quick response and guidance! 👍 |
Sure @maraisf, does this solve your issue? |
Removing the |
Cool. You could also use the analyze parameter include or exclude |
Description
Bumping from androidx.lifecycle:lifecycle-viewmodel:2.0.0 to androidx.lifecycle:lifecycle-viewmodel:2.2.0 casuse the following issue
Parceler: Unable to find read/write generator for type java.util.Map<java.lang.String, java.lang.Object> for androidx.lifecycle.ViewModel.mBagOfTags
mBagsofTags is a private field that is in the lifecycle.ViewModel
private final Map<String, Object> mBagOfTags = new HashMap<>();
Resolution attempt
Creating a custom converter for the field was unfruitful as the field is private
The text was updated successfully, but these errors were encountered: