2017-03-31 29 views
0

我在我的./libs文件夾中添加了一個intel webrtc庫。而加入的build.gradle此行

compile files('./libs/woogeenconference.jar') 

在那之後,我開始越來越

Execution failed for task ':app:transformClassesWithJarMergingForUserStaging'. 
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: okio/AsyncTimeout$1.class 

如何處理這個生成錯誤?我也在使用一些其他的Android軟件包。我認爲這是包含同一班。

compile 'com.squareup.okhttp:okhttp:2.3.0' 

感謝

回答

0

試試這個

compile files('./libs/woogeenconference.jar') { 
    exclude group: 'okhttp', module: 'okhttp' 
} 
+0

我得到這個錯誤,而不是錯誤:(166,0)找不到方法排除()爲參數[{組= okhttp,模塊= okhttp }]類型爲org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection的文件集合。 Open File user1017674

+0

太糟糕了。對不起 - 我知道在編譯(....)調用gradle時可以排除 - 我不確定它是否也適用於「編譯文件」。抱歉。 – Grisgram

相關問題