Dex错误我添加库后似乎无法修复

时间:2017-07-01 15:02:04

标签: android dex

我刚刚在我的应用中添加了一个新的Gradle库,或者说是两个应用程序。在一个应用程序中,它运行完美,在第二个我得到奇怪的DEX错误。

  

com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexException:多个dex文件定义Lorg / intellij /郎/注解/流量;

我已经检查了库,没有IntelliJ或注释依赖。

apply plugin: 'com.android.application'
apply plugin: 'com.droidtitan.lintcleaner'
apply plugin: 'com.google.firebase.firebase-perf'

android {
packagingOptions {
    exclude 'LICENSE'
    exclude 'README.md'
    exclude 'Other/'
    exclude 'keystore.jks'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/DEPENDENCIES'
}

compileSdkVersion 25
buildToolsVersion "26.0.0"

defaultConfig {
    applicationId "com.fa.daily"
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 290
    versionName "@string/version"
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
}

signingConfigs {
    release {
        if (project.hasProperty("KEYSTORE_PATH")) {
            storeFile file(KEYSTORE_PATH)
            storePassword KEYSTORE_PASSWORD
            keyAlias KEY_ALIAS
            keyPassword KEY_PASSWORD
        }
    }
}

buildTypes {
    release {
        signingConfig signingConfigs.release
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    debug {
        signingConfig signingConfigs.release
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

productFlavors {
    gplay {
        applicationId 'com.fa.daily.free'
    }
}
lintOptions {
    disable 'MissingTranslation'
    checkReleaseBuilds false
}

}

repositories {
maven {
    url 'http://dl.bintray.com/amulyakhare/maven'
}
maven {
    url "https://jitpack.io"
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//wearApp project(':wear')\n' +
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.android.support:cardview-v7:25.4.0'
compile 'com.android.support:support-v13:25.4.0'
gplayCompile 'com.google.android.gms:play-services-wearable:10.2.6'
compile 'com.squareup.picasso:picasso:+'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:+'
compile 'se.emilsjolander:android-flipview:+'

compile 'com.github.clans:fab:1.6.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.easing:library:1.0.1@aar'
compile 'com.daimajia.androidanimations:library:1.1.3@aar'
compile 'com.jenzz:materialpreference:1.3'

compile 'com.github.coyarzun89:fabtransitionactivity:0.1.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'

compile 'com.cocosw:bottomsheet:1.+@aar'

compile 'com.roughike:bottom-bar:1.3.2'

compile 'com.google.firebase:firebase-ads:10.2.6'
compile 'com.google.firebase:firebase-messaging:10.2.6'
compile 'com.google.firebase:firebase-crash:10.2.6'
compile 'com.google.firebase:firebase-perf:10.2.6'

compile 'com.github.igalata:Bubble-Picker:v0.2.4'
compile 'com.github.GrenderG:Toasty:1.1.5'

compile 'com.gjiazhe:PanoramaImageView:1.0'

compile 'com.github.javiersantos:PiracyChecker:1.1'

compile 'com.anjlab.android.iab.v3:library:1.0.+'

compile 'com.github.clockbyte:admobadapter:1.4.1'

compile 'com.miguelcatalan:materialsearchview:1.4.0'
}

apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案