Android-Gradle Multidex Build-Problem auf API 19

Ich habe ein Projekt, in dem ich aktiviert haben multidex zu vermeiden 65k limit und auch productFlavors (dev-API-21 und prod API 19) für die Anpassung.
Bau mein Projekt auf API 21 ich.e dev Geschmack ist erfolgreich, aber auf API 19 d.h. prod Geschmack ist er ständig er mir exception in-app task - shrink{component}MultiDexComponents

Vollständige Fehlerprotokoll:

:app:shrinkProdDebugMultiDexComponents FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:shrinkProdDebugMultiDexComponents'.
> java.io.IOException: Can't read [{Project Path}/app/build/intermediates/multi-dex/prod/debug/allclasses.jar] (Can't process class [com/olivephone/office/a/b/e/p.class] (Unknown verification type [17] in stack map frame))

bauen.gradle

apply plugin: 'com.android.application'

android {  
    compileSdkVersion 23  
    buildToolsVersion '23.0.0'  
    defaultConfig {  
        applicationId '{Project Name}'  
        minSdkVersion 15  
        targetSdkVersion 23  
        versionCode 1  
        versionName "1.0"  
        multiDexEnabled true  
    }  
    productFlavors {  
        dev {  
            //dev utilizes minSDKVersion = 21 to allow the Android gradle plugin  
            //to pre-dex each module and produce an APK that can be tested on  
            //Android Lollipop without time consuming dex merging processes.  
            minSdkVersion 21  
        }  
        prod {  
            //The actual minSdkVersion for the application.  
            minSdkVersion 19  
        }  
    }  
    buildTypes {  
        release {  
            minifyEnabled false  
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'  
        }  
    }  
}  

dependencies {  
    compile fileTree(include: ['*.jar'], dir: 'libs')  
    compile 'com.android.support:appcompat-v7:23.0.1'  
    compile 'com.android.support:recyclerview-v7:23.0.1'  
    compile 'com.android.support:cardview-v7:23.0.1'  
    compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2'  
    compile 'com.google.code.gson:gson:2.3.1'  
    compile 'com.google.android.gms:play-services:8.1.0'  
    compile 'com.android.support:multidex:1.0.1'  
    compile files('libs/linkedin-j-android.jar')  
    compile files('libs/itsrts-pptviewer.jar')  
    compile files('libs/signpost-core-1.2.1.1.jar')  
    compile 'org.twitter4j:twitter4j-core:4.0.2'  
    compile files('libs/universal-image-loader-1.9.2-SNAPSHOT-with-sources.jar')
    compile files('libs/dropbox-android-sdk-1.6.3.jar')  
    compile files('libs/json_simple-1.1.jar')  
    compile 'com.joanzapata.pdfview:android-pdfview:1.0.1@jar'  
    compile 'com.facebook.android:facebook-android-sdk:4.1.0'  
}

Jede Hilfe, bitte jemand ??

versuchen sauber aufzubauen.
Bereits haben !! Kein Glück gibt
Sind Sie mit Proguard?
Nein, nicht mit Proguard
Bearbeitet die Frage, mit bauen.gradle

InformationsquelleAutor Sidakpreet N | 2015-09-28

Schreibe einen Kommentar