2016-08-04 25 views
6

ben bir android uygulaması & API düzeyinde 21. üzeri işletim sistemine Ama API düzeyinde İşte 21.Yürütme' görev için başarısız oldu hata günlüğü transformClassesWithJarMergingForDebug

altında çalışır durumda değildir oluşturulan am olduğunu : Görev ': app: transformClassesWithJarMergingForDebug' görevi için başarısız oldu. com.android.build.api.transform.TransformException: java.util.zip.ZipException: entry çoğaltmak: android/destek/v4/accessibilityservice/AccessibilityServiceInfoCompat $ AccessibilityServiceInfoVersionImpl.class Aşağıda

aracılığıyla bana yardımcı olun benim gradle koddur :

apply plugin: 'com.android.application' 
android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 

    defaultConfig { 
     applicationId "*******" 
     minSdkVersion 16 
     targetSdkVersion 23 
     multiDexEnabled true 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      useProguard true 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    dexOptions { 
     javaMaxHeapSize "4g" 
     preDexLibraries = false 
    } 
    packagingOptions { 
     exclude 'META-INF/NOTICE.txt' // will not include NOTICE file 
     exclude 'META-INF/LICENSE.txt' // will not include LICENSE file 
    } 
} 

dependencies { 
    compile fileTree(exclude: 'android-support-*.jar', dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile project(':simple-crop-image-lib') 
    // compile 'com.github.navasmdc:MaterialDesign:+' 
    compile project(':material-login') 
    compile 'com.android.support:multidex:1.0.1' 
    compile ('com.android.support:appcompat-v7:23.4.0'){ 
     exclude module: 'support-v4' 
    } 
} 

cevap

1

İlk derleme Kişisel androidman yılında

compile 'com.android.support:multidex:1.0.1'

ile inşa bu çizgileri android eklemek ifest.xml:

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme" 
    android:name="android.support.multidex.MultiDexApplication" 
    > 

Ve build.gradle yılında da

dexOptions { 
    //incremental = true; 
    preDexLibraries = false 
    javaMaxHeapSize "4g" 
} 


packagingOptions { 
    exclude 'META-INF/NOTICE.txt' // will not include NOTICE file 
    exclude 'META-INF/LICENSE.txt' // will not include LICENSE file 
} 
+0

aynı hata @Er eklemek adlandırın. Arjun saini –

+0

uygulama build.gradle –

+0

ayrıca –

İlgili konular