私のアプリ(イオンプラットフォーム)で初めてGoogleサービスを使用しています。私はこれに従いますdoc。私のアプリケーションをビルド中に、私は次のエラーメッセージが表示されます。助けてください。ありがとうございました。idが 'com.google.gms.google-services'のプラグインが見つかりません
評価スクリプトに問題が発生しました。
Plugin with id 'com.google.gms.google-services' not found.
私のアプリ(イオンプラットフォーム)で初めてGoogleサービスを使用しています。私はこれに従いますdoc。私のアプリケーションをビルド中に、私は次のエラーメッセージが表示されます。助けてください。ありがとうございました。idが 'com.google.gms.google-services'のプラグインが見つかりません
評価スクリプトに問題が発生しました。
Plugin with id 'com.google.gms.google-services' not found.
次のようにトップレベルbuild.gradle
、アプリレベルbuild.gradle
ファイルを更新することにより、プロジェクトにプラグインを追加してください:
- Add the dependency to your project-level build.gradle:
classpath 'com.google.gms:google-services:3.0.0'
- Add the plugin to your app-level build.gradle:
apply plugin: 'com.google.gms.google-services'
詳しい情報についてはこれはGCM - Set up a GCM Client App on Androidにあります。
さらに、GitHub - GCMPushPluginに記載されているガイドまたは回避策も役立ちます。
Add classpath com.google.gms:google-services:3.0.0 dependencies at project level build.gradle
Refer the sample block from project level build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.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
}
}
ありがとうTeyam。私が変更を加えた後、私は次のエラーを受け取りました。私を助けてください。ありがとうございました。 エラー:/ -/-/platforms/android/gradlew:終了コードe 1でコマンドが失敗しましたエラー出力:/ -/- /プラットフォーム/ android/src/com/gonzaloaune/cordova/gcm/GPPRegistrat ionIntentService.java:40 :エラー:シンボルを見つけることができませんGoogleCloudMessaging.INSTANCE_ID_SCOPE、null);^symbol:variable INSTANCE_ID_SCOPE location:class GoogleCloudMessaging – Shyam
この問題を解決するために、おそらくbuild.gradleファイルを追加する必要があります。 –