إصدارات المكتبة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
بدءًا من الإصدار 15.0.0، يتم الاحتفاظ بمكتبات "خدمات Google Play" بشكل منفصل، ما يتيح لفِرق التطوير لكل مكتبة إرسال الإصلاحات والتحسينات بشكل مستقل وأسرع. يمكنك تتبُّع آخر الإصدارات
من خدمات Google Play وFirebase.
مطابقة الإصدارات بدقة
قد يكون إصدار إحدى المكتبات غير متوافق مع إصدار معيّن من مكتبة أخرى. للمساعدة في التعامل مع هذا الموقف، تقدّم العديد من مكوّنات Gradle الإضافية إرشادات بشأن حالات عدم تطابق الإصدارات هذه. وتتشابه منطق هذه المكوّنات الإضافية مع منطق قاعدة failOnVersionConflict()
الخاصة بـ ResolutionStrategy
المرتبطة بخدمات Google Play وتبعيات Firebase.
مكوّن خدمات Google الإضافي
يتحقّق المكوّن الإضافي في خدمات Google لأداة Gradle من توفّر إصدارات متوافقة من مكتبات "خدمات Google Play" وFirebase.
المكوّن الإضافي لمطابقة الإصدارات المستقلة
إذا كنت لا تستخدم مكوّن Google Services الإضافي، ولكنك ما زلت تريد التحقّق من الإصدارات بدقة في العناصر التابعة، يمكنك تطبيق strict-version-matcher-plugin
. يمكنك الاطّلاع على رمز هذا البرنامج المساعد على GitHub.
يوضّح مقتطف الرمز التالي كيفية إضافة إضافة Gradle:
Kotlin DSL
build.gradle.kts
plugins {
id("com.google.android.gms.strict-version-matcher-plugin")
}
Groovy DSL
build.gradle
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
لاستخدام هذه المكوّن الإضافي، عليك أيضًا إضافة ما يلي إلى مسار فئة buildscript، الذي تم الحصول عليه من مستودع Maven من Google:
Kotlin DSL
build.gradle.kts
classpath("com.google.android.gms:strict-version-matcher-plugin:1.2.4")
Groovy DSL
build.gradle
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-09-10 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-09-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eGoogle Play services libraries are now individually maintained, allowing for faster and more frequent updates to individual components.\u003c/p\u003e\n"],["\u003cp\u003eStrict version matching is crucial as library versions might be incompatible, and the Google Services Gradle plugin and the standalone strict-version-matcher-plugin help manage these dependencies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estrict-version-matcher-plugin\u003c/code\u003e offers a way to ensure version compatibility for Google Play services and Firebase dependencies, even without using the Google Services plugin.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the standalone plugin, you need to add it to your buildscript classpath and apply it in your Gradle file using the provided code snippets.\u003c/p\u003e\n"]]],["Google Play services libraries are individually maintained, enabling faster updates. To manage potential version incompatibilities between libraries, Gradle plugins provide guidance. The Google Services Gradle plugin checks for compatible versions of Google Play services and Firebase libraries. Alternatively, the `strict-version-matcher-plugin` offers dependency version checking without the Google Services plugin. To use it you must add the plugin and the `strict-version-matcher-plugin` classpath to your build script.\n"],null,[]]