Google Play 開発者サービスに対する Firebase Android SDK の依存関係
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
一部の Firebase Android SDK は Google Play services に依存しているため、Google Play services がインストールされているデバイスとエミュレータでのみ動作します。これらの Firebase SDK は、デバイス上の Google Play services のバックグラウンド サービスと通信して、最新のセキュアな軽量 API をアプリに提供します。一部の Android デバイス(Amazon Kindle Fire デバイスや一部の地域で販売されているデバイスなど)には、Google Play services がインストールされていません。
Google Play services が必要な Firebase Android SDK
Firebase SDK は次の 3 つのカテゴリに分類できます。
- Play services 必須 - Google Play services がなければ機能しません。
- Play services 推奨 - すべての機能を利用するには Google Play services が必要ですが、ほとんどの機能は Google Play services なしで利用できます。
- Play services 不要 - Google Play services なしですべての機能を利用できます。
以下の表は、各 SDK の最新リリースのみに当てはまります。古いバージョンには、より厳しい要件がある場合があります。
Google Play services は 不要
プロダクト |
ライブラリ |
Google Play services? |
Firebase AI Logic 1 |
com.google.firebase:firebase-ai:17.1.0 |
不要 |
App Check のカスタム プロバイダとデバッグ プロバイダ |
com.google.firebase:firebase-appcheck:19.0.0
com.google.firebase:firebase-appcheck-ktx:18.0.0
com.google.firebase:firebase-appcheck-debug:19.0.0 |
不要 |
App Distribution API |
com.google.firebase:firebase-appdistribution-api:16.0.0-beta16
com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta15 |
不要 |
App Distribution |
com.google.firebase:firebase-appdistribution:16.0.0-beta16 |
不要 |
Authentication |
com.google.firebase:firebase-auth:24.0.1
com.google.firebase:firebase-auth-ktx:23.2.1 |
不要 |
Cloud Firestore |
com.google.firebase:firebase-firestore:26.0.0
com.google.firebase:firebase-firestore-ktx:25.1.4 |
不要 |
Cloud Functions for Firebase Client SDK |
com.google.firebase:firebase-functions:22.0.0
com.google.firebase:firebase-functions-ktx:21.2.1 |
不要 |
Cloud Storage for Firebase |
com.google.firebase:firebase-storage:22.0.0
com.google.firebase:firebase-storage-ktx:21.0.2 |
不要 |
Crashlytics |
com.google.firebase:firebase-crashlytics:20.0.0
com.google.firebase:firebase-crashlytics-ktx:19.4.4 |
不要 |
Data Connect |
com.google.firebase:firebase-dataconnect:17.0.0 |
不要 |
In-App Messaging |
com.google.firebase:firebase-inappmessaging:22.0.0
com.google.firebase:firebase-inappmessaging-ktx:21.0.2 |
不要
|
In-App Messaging Display |
com.google.firebase:firebase-inappmessaging-display:22.0.0
com.google.firebase:firebase-inappmessaging-display-ktx:21.0.2 |
不要
|
Firebase のインストール |
com.google.firebase:firebase-installations:19.0.0
com.google.firebase:firebase-installations-ktx:18.0.0 |
不要 |
Performance Monitoring |
com.google.firebase:firebase-perf:22.0.0
com.google.firebase:firebase-perf-ktx:21.0.5 |
不要 |
Realtime Database |
com.google.firebase:firebase-database:22.0.0
com.google.firebase:firebase-database-ktx:21.0.0 |
不要 |
Remote Config |
com.google.firebase:firebase-config:23.0.0
com.google.firebase:firebase-config-ktx:22.1.2 |
不要 |
1 Firebase AI Logic は以前は「Vertex AI in Firebase」と呼ばれ、パッケージは com.google.firebase:firebase-vertexai
でした。
必須または推奨の Google Play services
プロダクト |
ライブラリ |
Google Play services? |
AdMob |
com.google.android.gms:play-services-ads:24.5.0 |
推奨2 |
Analytics |
com.google.firebase:firebase-analytics:23.0.0
com.google.firebase:firebase-analytics-ktx:22.5.0 |
推奨2 |
App Check Play Integrity プロバイダ |
com.google.firebase:firebase-appcheck-playintegrity:19.0.0 |
必須 |
App Check SafetyNet プロバイダ |
com.google.firebase:firebase-appcheck-safetynet:16.1.2 |
必須 |
App Indexing |
com.google.firebase:firebase-appindexing:20.0.0 |
必須 |
Cloud Messaging |
com.google.firebase:firebase-messaging:25.0.0
com.google.firebase:firebase-messaging-ktx:24.1.2 |
必須 |
Dynamic Links |
com.google.firebase:firebase-dynamic-links:22.1.0
com.google.firebase:firebase-dynamic-links-ktx:22.1.0 |
必須 |
Firebase ML Vision |
com.google.firebase:firebase-ml-vision:24.1.0 |
必須 |
Firebase ML Custom Model |
com.google.firebase:firebase-ml-model-interpreter:22.0.4 |
必須 |
2 Google アナリティクス向け Firebase SDK はどのデバイスでもイベントを送信できますが、一部の自動インサイト(ユーザー属性など)は Google Play services がインストールされたデバイスでのみ利用できます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-19 UTC。
[null,null,["最終更新日 2025-08-19 UTC。"],[],[],null,["\u003cbr /\u003e\n\nSome Firebase Android SDKs depend on\n[Google Play services](//developers.google.com/android/guides/overview),\nwhich means they will only run on devices and emulators with Google Play services\ninstalled. These Firebase SDKs communicate with the Google Play services background\nservice on the device to provide a secure, up-to-date, and lightweight API to\nyour app. Certain Android devices, such as Amazon Kindle Fire devices or those\nsold in some regions, do not have Google Play services installed.\n| **Note:** The [`google-services` Gradle plugin](//developers.google.com/android/guides/google-services-plugin) is used by all Firebase SDKs, but this plugin is not related to Google Play services.\n\nWhich Firebase Android SDKs require Google Play services?\n\nFirebase SDKs can be divided into three categories:\n\n- **Play services required** --- These SDKs require Google Play services, otherwise they have no functionality.\n- **Play services recommended** --- These SDKs require Google Play services to have *full* functionality, but they still offer *most* functionality even without Google Play services.\n- **Play services not required** --- These SDKS do not require Google Play services to have full functionality.\n\nThe tables below are accurate only for the\n[latest release](/support/release-notes/android#latest_sdk_versions) of each\nSDK. Some older versions may have stricter requirements.\n\nGoogle Play services not required\n\n| Product | Library | Google Play services? |\n|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|\n| Firebase AI Logic ^1^ | com.google.firebase:firebase-ai:17.1.0 | Not Required |\n| App Check custom and debug providers | com.google.firebase:firebase-appcheck:19.0.0 com.google.firebase:firebase-appcheck-ktx:18.0.0 com.google.firebase:firebase-appcheck-debug:19.0.0 | Not Required |\n| App Distribution API | com.google.firebase:firebase-appdistribution-api:16.0.0-beta16 com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta15 | Not Required |\n| App Distribution | com.google.firebase:firebase-appdistribution:16.0.0-beta16 | Not Required |\n| Authentication | com.google.firebase:firebase-auth:24.0.1 com.google.firebase:firebase-auth-ktx:23.2.1 | Not Required |\n| Cloud Firestore | com.google.firebase:firebase-firestore:26.0.0 com.google.firebase:firebase-firestore-ktx:25.1.4 | Not Required |\n| Cloud Functions for Firebase Client SDK | com.google.firebase:firebase-functions:22.0.0 com.google.firebase:firebase-functions-ktx:21.2.1 | Not Required |\n| Cloud Storage for Firebase | com.google.firebase:firebase-storage:22.0.0 com.google.firebase:firebase-storage-ktx:21.0.2 | Not Required |\n| Crashlytics | com.google.firebase:firebase-crashlytics:20.0.0 com.google.firebase:firebase-crashlytics-ktx:19.4.4 | Not Required |\n| Data Connect | com.google.firebase:firebase-dataconnect:17.0.0 | Not Required |\n| In-App Messaging | com.google.firebase:firebase-inappmessaging:22.0.0 com.google.firebase:firebase-inappmessaging-ktx:21.0.2 | Not Required |\n| In-App Messaging Display | com.google.firebase:firebase-inappmessaging-display:22.0.0 com.google.firebase:firebase-inappmessaging-display-ktx:21.0.2 | Not Required |\n| Firebase installations | com.google.firebase:firebase-installations:19.0.0 com.google.firebase:firebase-installations-ktx:18.0.0 | Not Required |\n| Performance Monitoring | com.google.firebase:firebase-perf:22.0.0 com.google.firebase:firebase-perf-ktx:21.0.5 | Not Required |\n| Realtime Database | com.google.firebase:firebase-database:22.0.0 com.google.firebase:firebase-database-ktx:21.0.0 | Not Required |\n| Remote Config | com.google.firebase:firebase-config:23.0.0 com.google.firebase:firebase-config-ktx:22.1.2 | Not Required |\n\n^**1** *Firebase AI Logic was formerly called\n\"Vertex AI in Firebase\" with the package\n`com.google.firebase:firebase-vertexai`.*^\n\nGoogle Play services required or recommended\n\n| Product | Library | Google Play services? |\n|-----------------------------------|---------------------------------------------------------------------------------------------------------|-----------------------|\n| AdMob | com.google.android.gms:play-services-ads:24.5.0 | Recommended ^2^ |\n| Analytics | com.google.firebase:firebase-analytics:23.0.0 com.google.firebase:firebase-analytics-ktx:22.5.0 | Recommended ^2^ |\n| App Check Play Integrity provider | com.google.firebase:firebase-appcheck-playintegrity:19.0.0 | Required |\n| App Check SafetyNet provider | com.google.firebase:firebase-appcheck-safetynet:16.1.2 | Required |\n| App Indexing | com.google.firebase:firebase-appindexing:20.0.0 | Required |\n| Cloud Messaging | com.google.firebase:firebase-messaging:25.0.0 com.google.firebase:firebase-messaging-ktx:24.1.2 | Required |\n| Dynamic Links | com.google.firebase:firebase-dynamic-links:22.1.0 com.google.firebase:firebase-dynamic-links-ktx:22.1.0 | Required |\n| Firebase ML Vision | com.google.firebase:firebase-ml-vision:24.1.0 | Required |\n| Firebase ML Custom Model | com.google.firebase:firebase-ml-model-interpreter:22.0.4 | Required |\n\n^**2** *The Firebase SDK for Google Analytics can send events on any\ndevice, but some automatic insights such as demographics are only available on\ndevices with Google Play services.*^"]]