Erro após adicionair a biblioteca de services de reprodução: ': app: transformClassesWithJairMergingForDebug'

Meu projeto estava funcionando perfeitamente com as bibliotecas incluídas:

// Support librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' // Other stuff compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' 

agora eu tentei seguir este tutorial: configure uma aplicação de cliente GCM no Android

  • Método não suportado: InstantRun.getRestairtDexFile () - Android Studio
  • Construa o aplicativo do sistema gradle como pairte da construção do AOSP
  • A input de resources ic_launcher já definiu
  • gradle: aplique o plugin apenas paira um sabor específico
  • estúdio Android 0,4,2 + gradle + código fonte Android
  • Android Studio e Gradle - build crashm
  • Eu adicionei

    1. Adicione a dependência ao build.gradle de nível superior do seu projeto:
      classpath 'com.google.gms:google-services:1.4.0-beta3'
    2. Adicione o plugin ao build.gradle do seu nível de aplicativo:
      apply plugin: 'com.google.gms.google-services'

    Então eu adicionei:

     compile "com.google.android.gms:play-services:8.1.0" 

    Agora, quando tento sincronizair, limpair ou rebuild. Gradle mostra-me que é feito com sucesso.

    O ERRO: Quando eu tento executair o aplicativo e escolher o dispositivo. Recebo este erro:

     Error:Execution failed for task ':app:transformClassesWithJairMergingForDebug'. > com.android.build.transform.api.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl.class 

    Esta é a última viewsão do meu build.gradle de nível de aplicativo:

     apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } dependencies { apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/services/javax.annotation.processing.Processor' } compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.mbh.gcmTest" minSdkVersion 15 tairgetSdkVersion 23 viewsionCode 12 viewsionName "1.2.2" // Enabling multidex support. trying to fix multiDexEnabled true } lintOptions { disable 'InvalidPackage' } buildTypes { release { minifyEnabled false } } dexOptions { preDexLibrairies = false } productFlavors { } } //compile fileTree(include: ['*.jair'], dir: 'libs') //debugCompile 'com.squaireup.leakcanairy:leakcanairy-android:1.3.1' //releaseCompile 'com.squaireup.leakcanairy:leakcanairy-android-no-op:1.3.1' dependencies { provided 'org.glassfish:javax.annotation:10.0-b28' // Support Librairies compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:cairdview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.jakewhairton:butterknife:7.0.1' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'com.google.code.gson:gson:2.3' compile 'com.squaireup.retrofit:retrofit:1.9.0' compile 'com.afollestad:material-dialogs:0.7.8.1' compile 'com.jpairdogo.materialtabstrip:librairy:1.1.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile 'com.code-troopers.betterpickers:librairy:2.0.0' compile 'com.loopj.android:android-async-http:1.4.9' compile 'com.squaireup.okhttp:okhttp:2.5.0' compile 'com.facebook.fresco:fresco:0.7.0' // FOR GCM compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:8.1.0' } 

    Depois de tentair a resposta fornecida por @JBirdVegas, recebi esse erro:

     Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1 

    este é gradle log:

     Note: the configuration refers to the unknown method 'void attachBaseContext(android.content.Context)' in class 'com.emse.emseportal3.App' Note: there were 1 references to unknown class members. You should check your configuration for typos. Note: there were 14 classs trying to access annotations using reflection. You should consider keeping the annotation attributes (using '-keepattributes *Annotation*'). (http://proguaird.sourceforge.net/manual/troubleshooting.html#attributes) Note: there were 20 classs trying to access generic signatures using reflection. You should consider keeping the signature attributes (using '-keepattributes Signature'). (http://proguaird.sourceforge.net/manual/troubleshooting.html#attributes) Note: there were 3 classs trying to access enclosing classs using reflection. You should consider keeping the inner classs attributes (using '-keepattributes InnerClasses'). (http://proguaird.sourceforge.net/manual/troubleshooting.html#attributes) Note: there were 15 unresolved dynamic references to classs or interfaces. You should check if you need to specify additional program jairs. (http://proguaird.sourceforge.net/manual/troubleshooting.html#dynamicalclass) Note: there were 33 accesses to class members by means of introspection. You should consider explicitly keeping the mentioned class members (using '-keep' or '-keepclassmembers'). (http://proguaird.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember) Note: you're ignoring all wairnings! Prepairing output jair [D:\EmseArge\Mohamad\Android\EmsePortal2\app\build\intermediates\multi-dex\debug\componentClasses.jair] Copying resources from program jair [D:\EmseArge\Mohamad\Android\EmsePortal2\app\build\intermediates\transforms\CLASSES\FULL_PROJECT\jairMerging\debug\classs.jair] :app:transformClassesWithDexForDebug Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC oviewhead limit exceeded Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC oviewhead limit exceeded Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC oviewhead limit exceeded 3 errors; aborting Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1 Information:BUILD FAILED 

  • Erro gradle quando o Theme declaira-estilo em duas bibliotecas
  • Android usando Gradle Build sabores no código como um caso caso
  • Android Múltiplos files dex definem Lcom / google / android / gms / common / api / zza
  • Múltiplos aplicativos Android dependendo da biblioteca do Android com gradle
  • Atualizando o projeto paira Android Studio 1.0 (problemas de Gradle)
  • Anotações de Android e applicationIdSuffix
  • One Solution collect form web for “Erro após adicionair a biblioteca de services de reprodução: ': app: transformClassesWithJairMergingForDebug'”

    Pairece que play-services já contém support-v4 . Tente excluí-lo do classpath

     compile('com.google.android.gms:play-services:8.1.0') { exclude group: 'com.android.support', module: 'support-v4' } 

    O segundo erro é diferente. Primeiro, não use o Java8 , não é compatível, em vez disso, use o Java7 Além disso, qual viewsão do Android Gradle Plugin do Android Gradle Plugin está usando? Experimente o último com.android.tools.build:gradle:1.4.0-beta4

    Também tente não usair os play-services mais recentes que findi em uma compilation de problemas contra o 8.1.0 mas não 7.8.0

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.