任务执行失败':app:dexDebug'.Process'命令'C:\ Program Files \ Java \ jdk1.8.0_45 \ bin \ java.exe''以非零退出值2

时间:2016-01-11 06:36:57

标签: java android chat

任务执行失败':app:dexDebug'。

  

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\ Program Files \ Java \ jdk1.8.0_45 \ bin \ java.exe''已完成非零退出值2 ##

的build.gradle

 apply plugin: 'com.android.application'

repositories {
    mavenCentral()
    maven { url 'http://maven.stickerpipe.com/artifactory/stickerfactory' }
}

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.chat.application.chatapplicationdemo"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.google.android.gms:play-services:8.4.0'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.navercorp.pulltorefresh:library:3.2.3@aar'
    compile('vc908.stickers:stickerfactory:0.2.2@aar') {
        transitive = true;
    }
    compile files('libs/quickblox-android-sdk-chat-2.4.jar')
    compile files('libs/quickblox-android-sdk-content-2.4.jar')
    compile files('libs/quickblox-android-sdk-core-2.4.jar')
    compile files('libs/quickblox-android-sdk-customobjects-2.4.jar')
    compile files('libs/quickblox-android-sdk-location-2.4.jar')
    compile files('libs/quickblox-android-sdk-messages-2.4.jar')
    compile files('libs/quickblox-android-sdk-videochat-webrtc-2.4.jar')
    compile 'com.android.support:appcompat-v7:23.1.1'
}

2 个答案:

答案 0 :(得分:0)

在你的lib文件夹中删除android_support_v4.jar并清理你的项目,这对我有用

答案 1 :(得分:0)

不要包含所有播放服务。它包括许多不必要的类

compile 'com.google.android.gms:play-services:8.4.0'

而只添加neccecarry模块。例如

compile 'com.google.android.gms:play-services-analytics:8.4.0'