构建 android fabric 项目时出错
Error coming on building android fabric project
我刚开始在构建 android 项目时遇到问题:
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/crashlytics/android/answers/shim/R.class
尝试了其他相关答案,例如从终端清理项目、重建但没有任何效果。
尝试替换
compile 'io.branch.sdk.android:library:2.+'
有
compile ('io.branch.sdk.android:library:2.+') {
exclude module: 'answers-shim'
}
我刚开始在构建 android 项目时遇到问题:
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/crashlytics/android/answers/shim/R.class
尝试了其他相关答案,例如从终端清理项目、重建但没有任何效果。
尝试替换
compile 'io.branch.sdk.android:library:2.+'
有
compile ('io.branch.sdk.android:library:2.+') {
exclude module: 'answers-shim'
}