2017-06-05 7 views
1

だから私は私のGradleの依存関係にAndroidのメーカー内部FirebaseアシスタントでアンドロイドのGradle:後firebase追加グーグル・サービスのプラグインのバージョンの競合:firebaseコア

compile 'com.google.firebase:firebase-core:10.0.1' 

を追加しましたが、同期した後、私はエラーを得ましたメッセージ:

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.2.6.

と私にはわかりません。私はgms:play-service-adsから10.2.6を使用しています。私の依存関係は次のとおりです:

dependencies { 
compile fileTree(include: ['*.jar'], dir: 'libs') 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile files('lib/mysql-connector-java-5.1.6.jar') 
compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' 
compile 'com.google.android.gms:play-services-ads:10.2.6' 
compile 'com.github.hani-momanii:SuperNova-Emoji:1.0' 
compile 'com.google.firebase:firebase-core:10.0.1' 
testCompile 'junit:junit:4.12' 
} 
apply plugin: 'com.google.gms.google-services' 

答えて

3

firebase consoleから最新のgoogle-services.jsonファイルをダウンロードし、プロジェクトのアプリケーションディレクトリに追加してください。あなたの問題を解決します。

+0

Btw。私はこの問題を再現したのでこの回答を受け入れましたが、最終的な解決策は、Androidスタジオに** firebase-core **の10.0.1 **を追加し、** play-services-ads ** ** 10.2.6 **です。だから私は** firebase-core **を** 10.2.6 **に変更しました** – DeluxeD

関連する問題