gson gradle in android code example
Example 1: gson dependency android
dependencies {
implementation 'com.google.code.gson:gson:2.8.6'
}
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
Example 2: android studio include gson in app
// Module level build.gradle
dependencies {
implementation 'com.google.code.gson:gson:2.8.5' // Old 2.8.2
}