Android Gradle प्लग इन 7.4.0 (जनवरी 2023)
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android Gradle प्लग इन 7.4.0 एक मुख्य रिलीज़ है. इसमें कई नई सुविधाएं और सुधार शामिल हैं.
इनके साथ काम करता है
AGP अपग्रेड असिस्टेंट की पोस्ट-अपग्रेड रिपोर्ट और रोलबैक की सुविधा
AGP अपग्रेड करने में मदद करने वाले टूल में अब अपग्रेड के बाद की रिपोर्ट भी शामिल है. इस रिपोर्ट में, पूरी की गई प्रोसेस के बारे में बताया गया है. साथ ही, यह भी बताया गया है कि अपग्रेड हुआ या नहीं. इसमें, अपग्रेड असिस्टेंट की ओर से किए गए बदलावों को पहले जैसा करने की सुविधा भी शामिल है. ऐसा तब किया जाता है, जब अपग्रेड के बाद प्रोजेक्ट बनाने या उसकी जांच करने में समस्याएं आ रही हों.
प्रोजेक्ट इंपोर्ट करने की प्रोसेस साथ-साथ चलती है
Studio IDE अब Gradle 7.4.2 या उसके बाद के वर्शन और Android Gradle प्लगिन 7.2.0 या उसके बाद के वर्शन का इस्तेमाल करने पर, प्रोजेक्ट को एक साथ इंपोर्ट करता है. खास तौर पर, जब Android Studio, Gradle सिंक को ट्रिगर करता है, तब आपकी बिल्ड में शामिल प्रोजेक्ट की जानकारी साथ-साथ बनाई जाती है. इससे आम तौर पर सिंक करने की प्रोसेस तेज़ हो जाती है. खास तौर पर, बड़े प्रोजेक्ट के लिए. बेंचमार्क से पता चलता है कि बहुत बड़े प्रोजेक्ट (जिसमें 3,500 Gradle सबप्रोजेक्ट हैं) के लिए Gradle मॉडल बनाने में लगने वाला समय 50% कम हो गया है. यह समय 10 मिनट से घटकर 5 मिनट हो गया है.
Android Gradle प्लग इन, JVM 11 बाइटकोड को टारगेट करता है
Android Gradle प्लग इन 7.4.0-alpha04 और इसके बाद के वर्शन में, AGP, JVM 11 बाइटकोड के साथ शिप होता है. इसका मतलब है कि अगर आपको AGP के साथ कंपाइल करना है या कस्टम Lint जांचें लिखनी हैं, तो आपको JVM 11 बाइटकोड को टारगेट करना होगा. ऐसा करने का एक तरीका यह है कि मॉड्यूल-लेवल की build.gradle
फ़ाइल में यह कोड शामिल करें:
sourceCompatibility = "11"
targetCompatibility = "11"
पैच रिलीज़
यहां Android Gradle प्लग इन 7.4 के लिए पैच रिलीज़ की सूची दी गई है.
Android Gradle प्लग इन 7.4.1 (फ़रवरी 2023)
इस छोटे अपडेट में, इन गड़बड़ियों को ठीक किया गया है:
ठीक की गई समस्याएं |
destination प्रॉपर्टी से outputLocation प्रॉपर्टी पर माइग्रेट करें, ताकि आपको बंद होने से जुड़ी चेतावनी न मिले और Gradle 9.0 के लिए तैयारी की जा सके
|
AGP 7.4.0-rc01, Variant API के साथ काम नहीं करता. इसमें "टास्क '...' पूरा होने से पहले, map(provider(java.util.Set)) की मैप की गई वैल्यू को क्वेरी करने की सुविधा उपलब्ध नहीं है" मैसेज दिखता है
|
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-09-05 (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"]],["आखिरी बार 2025-09-05 (UTC) को अपडेट किया गया."],[],[],null,["Android Gradle Plugin 7.4.0 is a major release that includes a variety of new\nfeatures and improvements.\n\nCompatibility\n\n\n| | Minimum version | Default version | Notes |\n|----------------:|:---------------:|:---------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------:|\n| Gradle | 7.5 | 7.5 | To learn more, see [updating Gradle](/build/releases/gradle-plugin?buildsystem=ndk-build#updating-gradle). |\n| SDK Build Tools | 30.0.3 | 30.0.3 | [Install](/studio/intro/update#sdk-manager) or [configure](/tools/releases/build-tools) SDK Build Tools. |\n| NDK | N/A | 23.1.7779620 | [Install](/studio/projects/install-ndk#specific-version) or [configure](/studio/projects/install-ndk#apply-specific-version) a different version of the NDK. |\n| JDK | 11 | 11 | To learn more, see [setting the JDK version](/studio/intro/studio-config#jdk). |\n\n\u003cbr /\u003e\n\nAGP Upgrade Assistant post-upgrade report and rollback functionality\n\nThe AGP Upgrade Assistant now includes a post-upgrade report. This report\ndescribes the steps that were completed and if the upgrade was successful or\nunsuccessful. It also includes an action to revert changes that were made by\nthe upgrade assistant, if there are issues building or testing the project\nafter the upgrade.\n\nProject import runs in parallel\n\nThe Studio IDE now imports projects in parallel when you use Gradle 7.4.2 or\nhigher and Android Gradle plugin 7.2.0 or higher. Specifically, when Android\nStudio triggers a Gradle sync, the information that describes projects included\nin your build is created in parallel. This usually speeds up the syncing\nprocess, especially for larger projects. Benchmarks show that the time it takes\nto build Gradle models for a very large project (with 3,500 Gradle subprojects)\nis reduced by 50%, from 10 minutes to 5 minutes.\n\nAndroid Gradle plugin targets JVM 11 bytecode\n\nStarting with Android Gradle plugin 7.4.0-alpha04, AGP ships wth JVM 11\nbytecode. This means that if you compile against AGP, or write custom Lint\nchecks, you need to start targeting JVM 11 bytecode. One of the ways to do this\nis to include the following in your module-level `build.gradle` file: \n\n sourceCompatibility = \"11\"\n targetCompatibility = \"11\"\n\nPatch releases\n\n\u003cbr /\u003e\n\nThe following is a list of the patch releases for Android Gradle Plugin\n7.4.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAndroid Gradle Plugin 7.4.1 (February 2023)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis minor update includes the following bug fixes:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Fixed issues ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Issue #242831042](https://issuetracker.google.com/issues/242831042) Migrate from `destination` property to `outputLocation` property to address deprecation warning and prepare for Gradle 9.0 |\n| [Issue #261329823](https://issuetracker.google.com/issues/261329823) AGP 7.4.0-rc01 breaks Variant API with \"Querying the mapped value of `map(provider(java.util.Set))` before task '...' has completed is not supported\" |\n\n\u003cbr /\u003e"]]