Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio warns that new version of library is available, but it's not there

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)

Android Studio warning

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: Android Studio error

(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!

like image 435
Zordid Avatar asked Jan 18 '26 12:01

Zordid


1 Answers

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'
like image 140
IntelliJ Amiya Avatar answered Jan 21 '26 01:01

IntelliJ Amiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!