יחסי תלות של ערכות Firebase Android SDK ב-Google Play Services
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
חלק מ-Firebase Android SDKs תלויים ב-Google Play services, מה שאומר שהם יפעלו רק במכשירים ובאמולטורים שמותקן בהם Google Play services. ערכות ה-SDK האלה של Firebase מתקשרות עם Google Play services שירות הרקע במכשיר כדי לספק לאפליקציה API מאובטח, עדכני וקל משקל. במכשירי Android מסוימים, כמו מכשירי Amazon Kindle Fire או מכשירים שנמכרים באזורים מסוימים, לא מותקן Google Play services.
אילו ערכות Firebase Android SDK דורשות Google Play services?
ערכות Firebase SDK מחולקות לשלוש קטגוריות:
- Play services נדרש – ערכות ה-SDK האלה דורשות Google Play services, אחרת הן לא פועלות.
- Play services מומלץ – ערכות ה-SDK האלה דורשות Google Play services כדי להציע פונקציונליות מלאה, אבל הן עדיין מציעות רוב הפונקציונליות גם ללא Google Play services.
- Play services לא נדרש – ערכות ה-SDK האלה לא דורשות את 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 רשת המדיה |
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 ראייה |
com.google.firebase:firebase-ml-vision:24.1.0 |
חובה |
Firebase ML מודל מותאם אישית |
com.google.firebase:firebase-ml-model-interpreter:22.0.4 |
חובה |
2 ה-Firebase SDK ל-Google Analytics יכול לשלוח אירועים בכל מכשיר, אבל חלק מהתובנות האוטומטיות, כמו נתונים דמוגרפיים, זמינות רק במכשירים עם Google Play services.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-08 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-08 (שעון 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.*^"]]