Gson Installation

Learn to include gson dependency in the java applications using build tools like maven, gradle or simple jar file.

The latest version of Gson is 2.8.9.

1. Install Gson with Gradle/Android

Include gson in the application or android project by adding the following dependency:

dependencies {
    compile group: '', name: 'gson', version: '2.8.9'

2. Install Gson with Maven

Download the latest Gson version or required version in Maven Central by adding the following dependency:


3. Install Gson as Jar file

The jar file can be downloaded from this location.

Happy Learning !!

Download Sourcecode

Leave a Reply

Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.

Our Blogs

REST API Tutorial