I have using gson in my android application with latest version 2.8.6. but if I config as below:
compileOptions {

 sourceCompatibility 1.8

targetCompatibility 1.8

}
will get an error :
error processing C:\Users\xxx\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.6\9180733b7df8542621dc12e21e87557e8c99b8cb\gson-2.8.6.jar java.lang.RuntimeException

But I change to v2.8.5 will work fine.
me too
studio 3.2.1
gradle 3.2.1
Any updates?
me too
Having an issue as well...
me too,but is working on my another project
classpath 'com.android.tools.build:gradle:3.5.3',build successful.
Bumping com.android.tools.build:gradle version fixed issue for me
Most helpful comment
classpath 'com.android.tools.build:gradle:3.5.3',build successful.