Adding Gson to your project
suggest changedependencies {
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:+'
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents