@SerializedName is highlighted in red

enter image description here

@SerializedName highlighted in red The compilation is successful. Invalidate Caches/restart doesn't help dependencies are connected Tell me what could be the problem?

1 answer

  • answered 2021-10-24 18:33 JustInCoding

    You're using an older version of GSON. To solve your problem, make sure that you're using version 2.8.8. Add this to your build.gradle,

    implementation 'com.google.code.gson:gson:2.8.8'
    

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum