FirebaseでのAdMob広告実装時にハマったこと No matching client found for package 原因は google-services.json 内の "client": [ { "client_info": { "mobilesdk_app_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "android_client_info": { "package_name": "jp.co.xxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxx" } }, package_name の値は applicationId になるのですが build.gradle の buildTypes や productFlavors で applicationIdSuffix を設定していたりするためにエラーとなるよう
なぜコレが必要か? Firebase SDKを組み込んだ処理は、通常 Google Services Plugin と google-services.json をアプリに組み込むことで動作する このPluginはApplicationビルド用のプロジェクトでしか動作しない ライブラリプロジェクトにFirebase SDKを組み込んだ場合、上記の前提だとUnitTestをするためのApplicationプロジェクトが必要になってしまう 明示的な初期化を行うことで、ライブラリプロジェクトだけでUnitTestが行える 方法 @RunWith(AndroidJUnit4::class) class HogeTest { @Before fun before() { FirebaseApp.initializeApp(context, FirebaseOptions.Builder().also
はじめに ScrollViewの中にRecyclerViewを置くケースです。 通常のScrollViewは使えないので、ネスト可能なNestedScrollViewを使用します。 画面全体がスクロール可能で、下の方にリスト表示がある構成です。 レイアウト構成 ざっくりですが、こんな感じです。 NestedScrollViewの中にコンテンツAとコンテンツBのレイアウトを包含しており、 コンテンツBのレイアウトにRecyclerViewが定義されております。 Activityのレイアウト <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く