任务':app:packageAllDebugClassesForMultiDex'的执行失败

时间:2015-10-23 16:13:40

标签: android

apply plugin: 'com.android.application'


android {
    compileSdkVersion 23
    buildToolsVersion '23.0.0'

    defaultConfig {
        applicationId "com.mycompany.newlogin"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            multiDexEnabled true
        }
    }
    productFlavors {

    }
    useLibrary 'org.apache.http.legacy'
}



dependencies {
    //compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services:8.1.0'
    compile 'com.android.support:multidex:1.0.0'
    compile 'com.google.guava:guava-jdk5:17.0'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'org.apache.httpcomponents:httpcore:4.4.1'
    compile 'org.apache.httpcomponents:httpclient:4.5'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
}

1 个答案:

答案 0 :(得分:0)

尝试从gradle文件中删除此行public void printArray(String[] s){ for (int i = 0; i < s.length; i++) { System.out.print("\"" + s[i] + "\","); for (int j = 0; j < s.length; j++) { if (j != i) { System.out.print("\"" + s[j] + "\","); } } System.out.println(); } } ,然后重新构建。