लाइब्रेरी वर्शन
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वर्शन 15.0.0 के बाद से, Google Play services की लाइब्रेरी का रखरखाव किया जा रहा है
इससे हर लाइब्रेरी की डेवलपमेंट टीम को प्रोजेक्ट में सुधार करने में मदद मिलती है
और उन्हें बेहतर बनाने में मदद करता है. आप नवीनतम
Google Play services के लिए रिलीज़ और
Firebase.
स्ट्रिक्ट वर्शन मैचिंग
हो सकता है कि एक लाइब्रेरी का वर्शन,
दूसरी लाइब्रेरी पर ले जाते हैं. इस स्थिति से निपटने के लिए, कई Gradle प्लगिन उपलब्ध कराती हैं
इन वर्शन के मेल न खाने से जुड़े दिशा-निर्देश देखें. इन प्लगिन का लॉजिक यह है
इसी तरह के लॉजिक के लिए, failOnVersionConflict()
ResolutionStrategy
जो Google Play services और Firebase डिपेंडेंसी से जुड़ी होती है.
Google सेवाएं प्लगिन
Google सेवाओं के Gradle प्लग इन
Google Play services और Firebase लाइब्रेरी के साथ काम करने वाले वर्शन की जांच करता है.
स्टैंडअलोन वर्शन मैचर प्लगिन
यदि आप Google सेवाएं प्लग इन का उपयोग नहीं कर रहे हैं, लेकिन फिर भी आप चाहते हैं कि
वर्शन की जांच कर रहे हैं, तो आप
[strict-version-matcher-plugin
]. आप इस प्लग इन के
GitHub पर कोड है.
नीचे दिया गया कोड स्निपेट, Gradle प्लग इन को जोड़ने का तरीका बताता है:
Kotlin डीएसएल
build.gradle.kts
plugin {
id("com.google.android.gms.strict-version-matcher-plugin")
}
ग्रूवी डीएसएल
build.gradle
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
इस प्लग इन का इस्तेमाल करने के लिए, आपको अपने
बिल्डस्क्रिप्ट क्लासपाथ, Google के Maven से मिला है
डेटा स्टोर करने की जगह:
Kotlin डीएसएल
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 साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-11 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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"]],["आखिरी बार 2024-09-11 (UTC) को अपडेट किया गया."],[[["Google Play services libraries are now individually maintained, allowing for faster and more frequent updates to individual components."],["Strict 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."],["The `strict-version-matcher-plugin` offers a way to ensure version compatibility for Google Play services and Firebase dependencies, even without using the Google Services plugin."],["To 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."]]],[]]