01/10/2018, 22:34

[Android Fix] Gson Cannot make field constructor accessible

[Android Fix] Gson Cannot make field constructor accessible Tháng Ba 6, 2016 nguyenvanquan7826 LT Android 4 responses Hi, I have error with notify like title the post, and I change my code to create Gson object bellow: gson = ...

[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();
0