Error compiling "Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes"

0

I was running my application and suddenly it does not work anymore and I get these errors:

Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes

Error:1 error; aborting

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process

This is the build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'
    defaultConfig {
        applicationId "lacasadelpan.com.archivos.lacasadelpan"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile 'com.android.support:design:24.2.1'
    testCompile 'junit:junit:4.12'
}
    
asked by jaron cascante Pérez 04.07.2017 в 06:12
source

1 answer

-1

Try using Clean in the project before compiling. If it does not solve, add in your gradle:

defaultConfig {
    multiDexEnabled true
}
    
answered by 04.07.2017 в 10:02