[Android Fix] Gson Cannot make field constructor accessible
Hi, I have error with notify like title the post, and I change my code to create Gson object bellow:
gson = new GsonBuilder().excludeFieldsWithModifiers(Modifier.FINAL, Modifier.TRANSIENT, Modifier.STATIC) .serializeNulls() .create();
i was searching from 1 hr and finally found answer here.
working 🙂
Thank for visit my blog.
please where is the answer
gson = new GsonBuilder().excludeFieldsWithModifiers(Modifier.FINAL, Modifier.TRANSIENT, Modifier.STATIC)
.serializeNulls()
.create();