লাইব্রেরি সংস্করণ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সংস্করণ 15.0.0 অনুযায়ী, Google Play পরিষেবার লাইব্রেরিগুলি পৃথকভাবে রক্ষণাবেক্ষণ করা হয়, যা প্রতিটি লাইব্রেরির জন্য উন্নয়ন দলগুলিকে স্বাধীনভাবে এবং আরও দ্রুত সংশোধন এবং বর্ধিতকরণ পাঠাতে দেয়৷ আপনি Google Play পরিষেবা এবং Firebase-এর জন্য সর্বশেষ প্রকাশগুলি ট্র্যাক করতে পারেন৷
কঠোর সংস্করণ ম্যাচিং
একটি লাইব্রেরির একটি সংস্করণ অন্য লাইব্রেরির একটি নির্দিষ্ট সংস্করণের সাথে বেমানান হতে পারে। এই পরিস্থিতি সামলাতে সাহায্য করার জন্য, বেশ কয়েকটি গ্রেডল প্লাগইন এই সংস্করণের অমিলগুলির জন্য নির্দেশিকা প্রদান করে। এই প্লাগইনগুলির লজিকটি Google Play পরিষেবা এবং ফায়ারবেস নির্ভরতার সাথে সম্পর্কিত একটি ResolutionStrategy
এর জন্য failOnVersionConflict()
নিয়মের যুক্তির অনুরূপ৷
গুগল সার্ভিস প্লাগইন
Google Services Gradle প্লাগইন Google Play পরিষেবা এবং Firebase লাইব্রেরির সামঞ্জস্যপূর্ণ সংস্করণগুলির জন্য পরীক্ষা করে।
স্বতন্ত্র সংস্করণ ম্যাচার প্লাগইন
আপনি যদি Google পরিষেবা প্লাগইন ব্যবহার না করেন, কিন্তু আপনি এখনও আপনার নির্ভরতাগুলির কঠোর সংস্করণ পরীক্ষা করতে চান, আপনি strict-version-matcher-plugin
প্রয়োগ করতে পারেন। আপনি GitHub এ এই প্লাগইনের কোড দেখতে পারেন।
নিম্নলিখিত কোড স্নিপেট দেখায় কিভাবে Gradle প্লাগইন যোগ করতে হয়:
কোটলিন ডিএসএল
build.gradle.kts
plugins {
id("com.google.android.gms.strict-version-matcher-plugin")
}
গ্রোভি ডিএসএল
build.gradle
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
এই প্লাগইনটি ব্যবহার করার জন্য, আপনাকে Google এর Maven সংগ্রহস্থল থেকে প্রাপ্ত আপনার বিল্ডস্ক্রিপ্ট ক্লাসপাথে নিম্নলিখিত যোগ করতে হবে:
কোটলিন ডিএসএল
build.gradle.kts
classpath("com.google.android.gms:strict-version-matcher-plugin:1.2.4")
গ্রোভি ডিএসএল
build.gradle
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\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,["\u003cbr /\u003e\n\nAs of version 15.0.0, the Google Play services libraries are maintained\nindividually, allowing the development teams for each library to ship fixes and\nenhancements independently and more quickly. You can track the latest releases\nfor [Google Play services](/android/guides/releases) and [Firebase](https://firebase.google.com/support/release-notes/android).\n\nStrict version matching\n\nA version of one library might be incompatible with a specific version of\nanother library. To help handle this situation, several Gradle plugins provide\nguidance for these version mismatches. The logic in these plugins is similar to\nthe logic in a `failOnVersionConflict()` rule for a [`ResolutionStrategy`](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html)\nthat's associated with Google Play services and Firebase dependencies.\n\nGoogle services plugin\n\nThe [Google Services Gradle plugin](/android/guides/google-services-plugin) checks for compatible versions of Google\nPlay services and Firebase libraries.\n\nStandalone version matcher plugin\n\nIf you're not using the Google Services plugin, but you still want strict\nversion checking of your dependencies, you can apply the\n`strict-version-matcher-plugin`. You can view this [plugin's\ncode](https://github.com/google/play-services-plugins/tree/master/strict-version-matcher-plugin) on GitHub.\n\nThe following code snippet shows how to add the Gradle plugin: \n\nKotlin DSL\n\nbuild.gradle.kts \n\n```kotlin\nplugins {\n id(\"com.google.android.gms.strict-version-matcher-plugin\")\n}\n```\n\nGroovy DSL\n\nbuild.gradle \n\n```groovy\napply plugin: 'com.google.android.gms.strict-version-matcher-plugin'\n```\n\nTo use this plugin, you also need to add the following to your buildscript\nclasspath, obtained from [Google's Maven repository](https://maven.google.com/web/index.html#com.google.android.gms:strict-version-matcher-plugin): \n\nKotlin DSL\n\nbuild.gradle.kts \n\n```kotlin\nclasspath(\"com.google.android.gms:strict-version-matcher-plugin:1.2.4\")\n```\n\nGroovy DSL\n\nbuild.gradle \n\n```groovy\nclasspath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'\n```"]]