app的执行失败:使用java邮件发送邮件的preDexDebug错误

时间:2015-09-23 07:05:14

标签: java android email

我得到的错误:

错误:任务':app:preDexDebug'执行失败。

  

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令' C:\ Program Files \ Java \ jdk1.7.0_79 \ bin \的java.exe''完成非零退出值1

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
         applicationId "com.icreate.icreate"
         minSdkVersion 16
         targetSdkVersion 22
         versionCode 1
         versionName "1.0"
    }

    compileOptions{
         sourceCompatibility JavaVersion.VERSION_1_6
         targetCompatibility JavaVersion.VERSION_1_6}
    packagingOptions {
         exclude 'META-INF/LICENSE'
         exclude 'META-INF/LICENSE-FIREBASE.txt'
         exclude 'META-INF/NOTICE'
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
    }
}

repositories {
    maven {
        url "https://jitpack.io"
    }
}

dependencies {
    compile 'com.firebase:firebase-client-android:2.3.1+'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.android.support:cardview-v7:+'
    compile 'com.github.timlian:android-javamail:3258af8228'
    compile files('libs/activation.jar')
    compile files('libs/additionnal.jar')
    compile files('libs/mail.jar')

}

1 个答案:

答案 0 :(得分:1)

只需添加defaultConfig { // Enabling multidex support. multiDexEnabled true }

即可
<div ng-class="[{'display-none-class' : $scope.mediaTypeList &&
 $scope.mediaTypeList.length > 0},
{'display-inlineb-class' : !$scope.mediaTypeList ||
 $scope.mediaTypeList.length === 0}]"></div>

欲了解更多信息,请查看:

How to enable multidexing with the new Android Multidex support library

https://developer.android.com/studio/build/multidex.html

相关问题