Adding Gson to your project

suggest change
dependencies {
    compile 'com.google.code.gson:gson:2.8.1'
}

To use the latest Gson, the line below resolves the newest version every time you compile, so you do not have to change the version number.

Pros: You get the latest features, speed improvements, and bug fixes.

Cons: It might break compatibility with your code.

compile 'com.google.code.gson:gson:+'

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents