In my Android Studio project, I get warnings like this - stating there's a newer version available. (gson: using 2.3.1 but 2.4 is available)

But when I then update my gradle file to use 2.4 instead:
compile 'com.google.code.gson:gson:2.4'
I get the error that this cannot be resolved:

(I also tried 2.4.0 without any improvement)
So - can anybody explain to me, why the new version is offered, but cannot be resolved? What am I missing?
Thanks!
Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object.
You can use below Stable version
compile 'com.google.code.gson:gson:2.3'
Latest is Gson 2.6.1
compile 'com.google.code.gson:gson:2.6.1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With