Klaxon library version issue


I have got an issue with Klaxon invocation in the tutorial, it seems it fails to find version 5.0.2.

implementation "com.beust:klaxon:5.0.2"

I changed it to a newer version, as found on : Central Repository: com/beust/klaxon, and it seems to work now:

implementation "com.beust:klaxon:5.4"

Is it the best way to solve the issue or would you advise another?