0

これは私のbuild.gradleコード エラー: ':app:processDebugGoogleServices'タスクの実行に失敗しました。アンドロイドスタジオでgoogleservicesエラーが発生します

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

マイbuild.gradleのコードは

apply plugin: 'com.google.gms.google-services' 
apply plugin: 'com.android.application' 
android { 
compileSdkVersion 24 
buildToolsVersion "24.0.1" 
defaultConfig { 
    applicationId "com.example.pandey.nidhiiot" 
    minSdkVersion 16 
    targetSdkVersion 24 
    versionCode 1 
    versionName "1.0" 
    multiDexEnabled true 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 

で、私の依存関係が コンパイルされている 'com.google.android.gms:遊ぶ-サービス:10.0.1'

+2

すべてのコンテンツを 'build.gradle'ファイルに表示します – TruongHieu

答えて

0

apply plugin: 'com.google.gms.google-services'を入れてみてください最初の部分ではなくapp.gradleファイルの最後に

関連する問題