问题描述
当我开始集成数字时,我不得不每次我在棉花糖之前的设备上构建应用程序后,升级后都会升级Crashlytics。错误
This is a screenshot from the duplicated classesWhen I started integrating Digits I had to upgrade Crashlytics after upgrading every time I build the app on pre-Marshmallow Devices I got build Error This one
错误:任务':app:transformClassesWithJarMergingForDebug'的执行失败。
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
搜索了一段时间之后,我已经尝试执行./gradlew clean命令,并且我发现两个具有相同名称的类ANswersKitEventLooger.class其中一个在Crashlytics中的answers-shim-0.0.3库下,另一个在分支库的Answers-shim-0.0.4下
After searching for a while I already tried to ./gradlew clean command and I figured that there is two classes with that same Name ANswersKitEventLooger.class One of them under answers-shim-0.0.3 Library in Crashlytics and the other one under answers-shim-0.0.4 in Branch Library
我也尝试在build.gradel中使用,但是到目前为止似乎没有任何效果
`
I also try to exculde then in the build.gradel but nothing seems to work so far`
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.facebook.android:facebook-android-sdk:4.8.0+'
compile 'com.xgc1986.android:parallaxpagertransformer:1.0.3'
compile 'com.facebook.rebound:rebound:0.3.7'
compile 'com.ogaclejapan.smarttablayout:library:1.1.3@aar'
compile files('libs/AudienceNetwork.jar')
compile files('libs/android-async-http-1.4.4.jar')
compile files('libs/ebizu-redemption.jar')
compile files('libs/universal-image-loader-1.9.1.jar')
compile files('libs/zxing-core.jar')
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile 'io.branch.sdk.android:library:1.+'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.daimajia.easing:library:1.0.1@aar'
compile 'com.daimajia.androidanimations:library:1.1.3@aar'
compile 'com.android.support:multidex:1.0.1'
compile('com.crashlytics.sdk.android:crashlytics:2.6.0@aar') {
transitive = true;
}
compile('com.digits.sdk.android:digits:1.11.1@aar') {
transitive = true;
}
}
`
推荐答案
此问题已在Branch SDK v2.1.0中修复
This issue is fixed in Branch SDK v2.1.0
这篇关于使用Jar转换类,合并以进行调试重复项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!