Depending on your project setup, you can either download the JAR manually or use a build tool.
If you use Maven or Gradle, simply add the following to your configuration file to have the JAR downloaded automatically: Maven ( pom.xml ): gson jar download for java 1.8
com.google.code.gson gson 2.14.0 Use code with caution. Depending on your project setup, you can either