-1

そして、私はAndroid Studioの新機能ですので、わかりません。 Push Notificationで新しいですが、FCMを使用していますが、解決策が得られません。 実行時にこのタイプのエラーが発生します。アンドロイドのFCMを使用したプッシュ通知

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

私のアプリ/ Gradleのは、これは私が更新アンドロイドスタジオに私の側から左にSDKは何もないが、私は知らない私のプロジェクトのGradle

buildscript { 
repositories { 
    jcenter() 
} 
dependencies { 
// classpath 'com.android.tools.build:gradle:2.2.3' 
//  classpath 'com.google.gms:google-services:3.0.0' 

    classpath 'com.android.tools.build:gradle:2.2.3' 
    classpath 'com.google.gms:google-services:3.0.0' 
    // NOTE: Do not place your application dependencies here; they belong 
    // in the individual module build.gradle files 
} 
} 

allprojects { 
repositories { 
    jcenter() 
} 
} 

task clean(type: Delete) { 
delete rootProject.buildDir 
    } 

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 24 
buildToolsVersion "24.0.1" 
defaultConfig { 
    applicationId "info.androidhive.firebasenotifications" 
    minSdkVersion 15 
    targetSdkVersion 19 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies { 
// compile fileTree(dir: 'libs', include: ['*.jar']) // old default 
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:24.0.0-beta1' 
testCompile 'junit:junit:4.12' 

compile 'com.google.firebase:firebase-messaging:9.6.0' 
compile 'com.google.android.gms:play-services:7.5.0' 
} 

// ADD THIS AT THE BOTTOM 
apply plugin: 'com.google.gms.google-services' 

である。ここで、i間違ってください。 これで私を助けてください。

+2

エラーは、自己があなたがそう私は何をお使いのGradle – Selvin

+0

@SelvinにおけるGMS 7.5.0を持って説明にありますか? –

+4

firebaseと同じバージョンに変更してください...あなたは何を理解できませんでしたか?* Googleのサービスプラグインのバージョンを更新することでバージョンの競合を解決してください(最新バージョンに関する情報はhttps:// bintray .com/android/android-tools/com.google.gms.google-services /)またはcom.google.android.gmsのバージョンを9.6.0に更新してください* – Selvin

答えて

2

あなたのgmsバージョンは7.5.0です。firebaseバージョンと同じバージョンに変更するか、最新バージョンにアップデートすることができます。アプリモジュールのbuild.gradleファイル内

あなたfirebaseを更新し、バージョン10.2.0に-サービスを果たし

compile 'com.google.firebase:firebase-core:10.2.0' 
compile 'com.google.android.gms:play-services:10.2.0' 
+0

申し訳ありませんこれは私にとっては役に立たない –

+0

プロジェクトを再構築してください。 ? – Aryan

+0

最初にすべてのクリーニング&再構築プロジェクト –

関連する問題