2017-08-19 10 views
-1

バージョンを更新した後でも、gradleが構築されるたびに同じエラーがポップアップし続けます。Googleサービスのバージョンのエラー

プロジェクトベースのGradle

dependencies { 
    classpath 'com.android.tools.build:gradle:2.3.3' 
    classpath 'com.google.gms:google-services:3.1.0' 
    } 

**アプリケーションベースのGradle **

ependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 



compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' 
compile 'com.google.firebase:firebase-auth:10.0.1' 
compile 'com.google.firebase:firebase-database:9.2.0' 
compile 'com.github.barteksc:android-pdf-viewer:2.4.0' 
compile 'com.google.firebase:firebase-storage:10.0.1' 
testCompile 'junit:junit:4.12' 
} 
apply plugin: 'com.google.gms.google-services' 

と、以下のようにエラーが表示されます。 -

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.

に私を助けてください問題を解決してください。

+0

エラーはあなたが、少なくともそれを読んで読みました自明です

compile 'com.google.firebase:firebase-database:9.2.0' 

更新?現在は単一の依存関係のバージョンを確認しています – Selvin

+0

@Qwerty あなたはそれを修正しましたか? – shahid17june

答えて

0

あなたのすべてのfirebaseバージョンは同じでなければなりません。それは

compile 'com.google.firebase:firebase-database:10.0.1' 
関連する問題