I tried declaring the field as transient, with `@d...
# android
i
I tried declaring the field as transient, with
@delegate:Transient
- still the same
g
This should work, we have it in our project. But don’t forget, it’s not enough to exclude field, you need working Lazy initilizer, so your class must have default constructor, otherwise Gson will use Unsafe API and just create class and bypass constructor
Default constructor is also important if you use default values for constructor arguments.