Gson: V2.8.6 java.lang.RuntimeException

Created on 23 Oct 2019  Â·  7Comments  Â·  Source: google/gson

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.

Most helpful comment

classpath 'com.android.tools.build:gradle:3.5.3',build successful.

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GoogleCodeExporter picture GoogleCodeExporter  Â·  14Comments

kdehairy picture kdehairy  Â·  43Comments

GoogleCodeExporter picture GoogleCodeExporter  Â·  15Comments

adiantek picture adiantek  Â·  23Comments

GoogleCodeExporter picture GoogleCodeExporter  Â·  31Comments