2017-01-02 1 views
2

私はFCMをインストールしたイオンプロジェクトを作成しました。しかし、FCMをインストールした後、エラー ':processDebugGoogleServices'が表示されます。SDKを更新しました。 APK enter image description hereionicプロジェクトでFCMを使用してAndroid apkを作成するときのエラーを解決するにはどうすればよいですか?

Error: cmd: Command failed with exit code 1 Error output: 
 
Note: Some input files use or override a deprecated API. 
 
Note: Recompile with -Xlint:deprecation for details. 
 
Note: Some input files use or override a deprecated API. 
 
Note: Recompile with -Xlint:deprecation for details. 
 

 
FAILURE: Build failed with an exception. 
 

 
* What went wrong: 
 
Execution failed for task ':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.2.0. 
 

 
* Try: 
 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

答えて

0

を構築thatandを解決するためにどのようにあなたのbuild.gradleファイルに最後に以下の行を追加し、プロジェクトを再構築します。

してプラグインを適用する:「com.google.gms.google-サービスの

注:あなたが

チェックアウトの行の末尾に上記の行を追加していることを確認してくださいサンプルはlinkです。 "プロジェクトに行き、このエラーを解決するには - >プラットフォーム..>アンドロイド - > をgradlefileと変更"

0

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

} //プラグインが適用されます:「com.googleを。 gms.google-services ' //ルート以外のグラデルファイルからプラグインを適用するには、id(文字列)の代わりにクラスを使用する必要があります apply plugin:com.google.gms.googleservices.GoogleServicesPlugin

関連する問題