Koche
Koche
Feb 25, 2017 · 1 min read

when using gradle android plugin 2.14.1 with Jack enabled, there is a NoSuchMethodError:

Execution failed for task ':autowithgson:transformJackWithJackForDebug’. > com.android.jack.ir.JNodeInternalError: java.lang.Exception: java.lang.NoSuchMethodError: com.google.gson.annotations.SerializedName.alternate()[Ljava/lang/String;

I found a solution in this issue

No such method on existing method with Jack

Saying: Seems fixed by updating the android plugin.

so, I updated the android plugin to the latest:

classpath 'com.android.tools.build:gradle:2.3.0-rc1'

and gradle wrapper distribution to gradle-3.4

distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-all.zip

and it works!

    Koche

    Written by

    Koche

    nobody