2017-08-31 4 views
0

Ich versuche, Firebase mit Google Play Services, Karten, plus, Ort und Orten zu verwenden, aber jedes Mal, wenn ich versuche, die Version zu aktualisieren, habe ich diesen Fehler!Google Play Services Android-Konfliktbibliothek

Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.0.1.

My Gradle App Ebene

compile 'com.google.firebase:firebase-database:10.0.1' 
compile 'com.squareup.okhttp3:okhttp:3.8.1' 
compile 'com.squareup:otto:1.3.8' 
compile 'com.android.support:cardview-v7:25.3.1' 
compile 'com.android.support:recyclerview-v7:25.3.1' 
compile 'com.squareup.picasso:picasso:2.5.2' 
compile 'com.orhanobut:hawk:2.0.1' 
compile 'com.karumi:dexter:4.1.0' 
testCompile 'junit:junit:4.12' 
compile 'com.google.android.gms:play-services-maps:10.2.1' 
compile 'com.google.android.gms:play-services-plus:10.2.1' 
compile 'com.google.android.gms:play-services-location:10.2.1' 
compile 'com.google.android.gms:play-services-places:10.2.1' 
compile 'com.bluelinelabs:logansquare:1.3.6' 
apt 'com.bluelinelabs:logansquare-compiler:1.3.6' 

Am unteren apply plugin: 'com.google.gms.google-services'

und top apply plugin: 'com.android.application'apply plugin: 'com.neenbedankt.android-apt'

Projekt Level:

dependencies { 
    classpath 'com.android.tools.build:gradle:2.3.3' 
    classpath 'com.google.gms:google-services:3.1.0' 
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' 
} 
repositories { 
    jcenter() 
    maven { url 'https://maven.google.com' } 
} 

Es funktioniert nur, wenn ich 10.0.1 degradieren aber es gibt eine neue:

enter image description here

+0

gehe zum Tool -> SDK Manager und aktualisiere lib von dort als nach dieser Update lib Version in build.gradle –

Antwort

1

Update Ihre Abhängigkeit wie diese

compile 'com.google.firebase:firebase-database:11.0.4' 
compile 'com.squareup.okhttp3:okhttp:3.8.1' 
compile 'com.squareup:otto:1.3.8' 
compile 'com.android.support:cardview-v7:25.3.1' 
compile 'com.android.support:recyclerview-v7:25.3.1' 
compile 'com.squareup.picasso:picasso:2.5.2' 
compile 'com.orhanobut:hawk:2.0.1' 
compile 'com.karumi:dexter:4.1.0' 
testCompile 'junit:junit:4.12' 
compile 'com.google.android.gms:play-services-maps:11.0.4' 
compile 'com.google.android.gms:play-services-plus:11.0.4' 
compile 'com.google.android.gms:play-services-location:11.0.4' 
compile 'com.google.android.gms:play-services-places:11.0.4' 
compile 'com.bluelinelabs:logansquare:1.3.6' 
apt 'com.bluelinelabs:logansquare-compiler:1.3.6' 
1

Aktualisieren Sie Ihre

compile 'com.google.android.gms:play-services-maps:10.2.1' 
compile 'com.google.android.gms:play-services-plus:10.2.1' 
compile 'com.google.android.gms:play-services-location:10.2.1' 
compile 'com.google.android.gms:play-services-places:10.2.1 

zu einer neueren Version bereits in Ihrem Fall (11.0.4)

aktualisieren Sie auch Ihre Firebase-Abhängigkeit.

Verwandte Themen