Gradle和Android studio导入的应用程序

时间:2016-01-26 11:43:10

标签: android gradle viewpagerindicator

我是大家,我和我的android studio proyect有关,我是在3天前开发的,当我完成更新SDK和IDE时。当我尝试编译现在不工作时,我做了我所知道的所有但我不能做的工作。 我开始参加公会,但是当我尝试运行我的应用程序时,这是错误的:

    Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_65\bin\java.exe'' finished with non-zero exit value 2

这是我的傻瓜:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"
    useLibrary  'org.apache.http.legacy'
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
    }


    defaultConfig {
        applicationId "com.paskuton.canyoners"
        minSdkVersion 13
        targetSdkVersion 21
        versionCode 16
        versionName "1.2"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.0.+'
    //compile "com.android.support:support-v13:23.0.+"
    compile 'com.android.support:support-v4:23.0.+'
    //compile 'com.android.support:design:21.0.1'
    //compile 'com.viewpagerindicator:library:2.4.1'
    compile 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
    compile 'com.google.android.gms:play-services:+'
    /*compile 'org.apache.commons:commons-collections4:4.0'
    compile 'org.apache.httpcomponents:httpclient:4.2.3'
    compile "org.apache.httpcomponents:httpmime:4.2.3"
    compile 'org.apache.httpcomponents:httpcore:4.4.1'*/
    compile ('org.apache.httpcomponents:httpmime:4.3'){
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
    }
    compile ('org.apache.httpcomponents:httpcore:4.4.1'){
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'

    }
}

我有一个带有viewpagerindicator选项卡的应用程序,带有json comunication到服务器,操作栏和推送通知的httpcomponents。

任何人都知道什么附加?

感谢所有人。

0 个答案:

没有答案