android studio 2.3.3でアプリに広告を実装しようとしています。
android studio スタートガイドhttps://firebase.google.com/docs/admob/android/quick-start?hl=ja
こちらを参考に行っているのですが、『アプリレベルの build.gradle(抜粋)を検証する』の記述で同期をしたところ、以下のエラーが発生しました。
Exection failed for task'app:processDebugGoogleServices'.
No matching client found for package name 'ファイル名'
該当のソースコードは以下です。
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:xx.x.x'
compile 'com.google.firebase:firebase-ads:10.0.1'
}
...
apply plugin: 'com.google.gms.google-services'
google-services.jsonはappディレクトリ直下に入れてます。
プログラム初心者ですが、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/12 12:17