【发布时间】:2016-02-10 22:48:03
【问题描述】:
有人尝试实现 Facebook SDK 和 Fresco lib 和 Retrofit 吗? 我的 gradle 因重复有关螺栓而失败。
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: bolts/AggregateException.class
这是我的毕业失败。我尝试使用 Fresco for OkHttp,但仍然遇到上述问题。
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.facebook.fresco:fresco:0.9.0'
compile 'com.facebook.fresco:imagepipeline-okhttp:0.9.0'
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
compile 'com.android.support:multidex:1.0.1'
}
【问题讨论】:
-
看看这里有什么帮助你stackoverflow.com/questions/28791817/…
-
我已经尝试过该链接,但没有运气。还有其他想法吗?
-
我在 cmets 中看到 bolts 项目的 gradle 中有一个
exclude。我现在看到几篇关于该库与 something 冲突的帖子,不确定是什么...
标签: android facebook-sdk-4.0 retrofit2 fresco