且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决java.util.zip.ZipException重复项:com/google/gson/annotations/Expose.class?

更新时间:2023-11-20 10:03:34

您应该exclude module: 'gson'来自Twitter dependency,例如

You should exclude module: 'gson'from twitter dependency like

 compile('com.twitter.sdk.android:twitter:1.10.0@aar') {
    transitive = true;
    exclude module: 'gson'
}

您已经将 GSON 添加为gson-2.3.1.jar