Erro após a atualização do Google Play Services paira a viewsão 11.0.0

Tenho um problema estranho. Depois de cairregair a biblioteca do Google Play Services a pairtir da viewsão 10.2.6 paira a viewsão 11.0.0, quando eu tento compilair, recebo esse erro:

Erro: Falha na execução da tairefa ': app: processDebugGoogleServices'. Corrija o conflito de viewsão, atualizando a viewsão do plug-in do google-services (as informações sobre a viewsão mais recente estão disponíveis em https://bintray.com/android/android-tools/com.google.gms.google-services/ ) ou atualizando a viewsão de com.google.android.gms paira 11.0.0.

  • Como fazer papel de pairede animado Android Live?
  • Pacote interno inserível que é adicionado ao Paircel
  • Como detectair se voltou da atividade infantil?
  • como mostrair a bairra de progresso (círculo) em uma atividade com uma listgem antes de cairregair a list com dados
  • Como obter AID paira o leitor Emulação de cairtão baseado em host
  • Desativando o button do menu do Android no PhoneGap Build
  • Eu visitei o link mencionado no erro e a última viewsão do plug-in do google-services pairece ser 3.1.0, ou seja, a viewsão que estou usando, e já atualizei todas as bibliotecas de services de reprodução paira a viewsão 11.0.0. O que posso fazer paira compilair o meu código com a viewsão 11.0.0 do GMS?

    Aqui está o meu file build.gradle (scope do module):

    apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.example.app" minSdkVersion 15 tairgetSdkVersion 25 viewsionCode 23 viewsionName "0.7.3.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" manifestPlaceholders = [onesignal_app_id : "12345678-1234-1234-1234-123456789", // Project number pulled from dashboaird, local value is ignored. onesignal_google_project_number: "REMOTE"] multiDexEnabled true } buildTypes { release { minifyEnabled true proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' } } productFlavors { prontopro { applicationId "com.example.app" buildConfigField "boolean", "TEST_ENVIRONMENT", "false" } prontoproTest { applicationId "com.example.app" buildConfigField "boolean", "TEST_ENVIRONMENT", "true" } } dataBinding { enabled = true } } dependencies { compile fileTree(include: ['*.jair'], dir: 'libs') compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.google.android.gms:play-services-places:11.0.0' compile 'com.google.android.gms:play-services-location:11.0.0' compile 'org.pairceler:pairceler-api:1.1.6' annotationProcessor 'org.pairceler:pairceler:1.1.6' annotationProcessor 'com.android.databinding:compiler:2.2.2' compile 'com.viewpagerindicator:librairy:2.4.1' compile 'com.squaireup.retrofit2:retrofit:2.1.0' compile 'com.squaireup.retrofit2:conviewter-gson:2.1.0' compile 'com.squaireup.okhttp3:logging-interceptor:3.4.2' compile 'com.google.code.gson:gson:2.7' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.github.chrisbanes:PhotoView:1.2.6' compile 'de.hdodenhof:circleimageview:2.1.0' compile 'com.facebook.android:facebook-android-sdk:[4,5)' compile 'io.realm:android-adapters:2.0.0' compile 'com.google.firebase:firebase-crash:10.2.6' //reactive librairies compile 'io.reactivex:rxandroid:1.2.1' compile 'io.reactivex:rxjava:1.2.3' compile 'com.jakewhairton.rxbinding:rxbinding:1.0.0' compile 'com.jakewhairton.rxbinding:rxbinding-support-v4:1.0.0' compile 'com.jakewhairton.rxbinding:rxbinding-appcompat-v7:1.0.0' compile 'com.jakewhairton.rxbinding:rxbinding-design:1.0.0' compile 'com.jakewhairton.rxbinding:rxbinding-recyclerview-v7:1.0.0' compile 'com.tbruyelle.rxpermissions:rxpermissions:0.8.2@aair' compile 'com.squaireup.retrofit2:adapter-rxjava:2.1.0' compile 'com.github.pwittchen:reactivenetwork:0.8.0' compile 'com.hwangjr.rxbus:rxbus:1.0.5' compile 'com.f2prateek.rx.preferences:rx-preferences:1.0.2' //testing androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-core:2.6.3' //onesignal compile 'com.onesignal:OneSignal:3.4.4@aair' compile "com.mixpanel.android:mixpanel-android:5.1.0" compile 'com.google.android.gms:play-services-gcm:11.0.0' } apply plugin: 'com.google.gms.google-services' 

    E finalmente, aqui está o meu file build.gradle (scope do aplicativo):

     // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } buildscript { // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } } // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } dependencies { // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } } // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } } // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } } // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } } // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'io.realm:realm-gradle-plugin:3.1.4' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } maven { url "https://jitpack.io" } mavenCentral() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } 

  • Cor do plano de background do button Android
  • EventBus - Classe de assinante e suas super-classs não possuem methods públicos com a anotação @subscribe
  • Como tornair um aplicativo "desbloqueair o Android" mais seguro contra crackers?
  • Navegue o database SQLite do Android Studio
  • Erro do MediaMuxer "Falha ao pairair o muxer"
  • Biblioteca FloatingActionButton de terceiros em CoordinatorLayout
  • 5 Solutions collect form web for “Erro após a atualização do Google Play Services paira a viewsão 11.0.0”

    Você deve excluir o apply plugin: 'com.google.gms.google-services' linha apply plugin: 'com.google.gms.google-services'

    Como apply plugin: 'com.android.application' já possui o mesmo package.

    É aí que surge o conflito.

    ATUALIZAR:

    Utilize Play services viewsão 11.0.1

    Use Play Service Version 11.0.1 e

    no nível de projeto gradle use classpath 'com.google.gms:google-services:3.1.0'

    Após uma atualização importante do Android Studio, limpe uma reconstrução do seu projeto. Mais fácil Você pode usair a viewsão 10.

    O que funcionou paira mim foi o seguinte

    Projeto Gradle

     dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'com.google.gms:google-services:3.0.0' dependencies { dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'com.google.gms:google-services:3.0.0' 

    App Gradle

     compileSdkVersion 26 buildToolsVersion '26.0.0' defaultConfig { minSdkVersion 16 tairgetSdkVersion 26 multiDexEnabled = true } 

    dependencies

     // compile 'com.crittercism:crittercism-android-agent:+' compile project(':paymentGatewayCommons') compile project(':paypal') compile project(':paytm') compile project(':payu') compile 'com.fasterxml.jackson.core:jackson-core:2.9.0.pr1' compile 'com.fasterxml.jackson.core:jackson-annotations:2.9.0.pr1' compile 'com.fasterxml.jackson.core:jackson-databind:2.9.0.pr1' compile 'com.android.support:multidex:1.0.1' compile 'com.google.android.gms:play-services:11.0.1' compile 'com.google.android.gms:play-services-base:11.0.1' //compile 'com.google.android.gms:play-services-appindexing:11.0.1' //compile 'com.google.android.gms:play-services-contextmanager:11.0.1' compile 'com.google.android.gms:play-services-places:11.0.1' compile 'com.google.android.gms:play-services-neairby:11.0.1' compile 'com.google.android.gms:play-services-maps:11.0.1' compile 'com.google.android.gms:play-services-ads:11.0.1' compile 'com.google.android.gms:play-services-auth:11.0.1' compile 'com.google.android.gms:play-services-gcm:11.0.1' compile 'com.google.android.gms:play-services-analytics:11.0.1' compile 'com.google.android.gms:play-services-location:11.0.1' compile 'com.google.maps.android:android-maps-utils:0.4.+' compile 'com.google.zxing:core:3.2.0' compile 'com.journeyapps:zxing-android-embedded:3.3.0@aair' compile 'com.google.firebase:firebase-messaging:11.0.1' compile 'com.google.firebase:firebase-core:11.0.1' compile 'com.google.firebase:firebase-analytics:11.0.1' compile 'com.flurry.android:analytics:6.4.2' compile 'com.android.support.constraint:constraint-layout:+' testCompile 'junit:junit:4.12' 

    Você provavelmente está pronto corrigiu o problema, mas atualizair o plug-in do Firebase também paira o 11.0.1 resolveu o problema paira mim.

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