Avatar ·

पुराने Gradle फंक्शंस का उपयोग: 'Deprecated Gradle features were used' को कैसे ठीक करें?

सभी को नमस्कार! मैं Kotlin पर एक शुरुआती Android डेवलपर हूँ, और प्रोजेक्ट बिल्ड करते समय मुझे एक समस्या आई। Gradle को संस्करण 5.0 में अपडेट करने के बाद, मुझे यह त्रुटि संदेश मिलता है: "Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0"। बिल्ड फेल हो जाता है, और मैं ऐप नहीं चला सकता। यहाँ मेरी `build.gradle` फ़ाइल है (प्रोजेक्ट स्तर): ```kotlin // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.3.31' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.4.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } ``` और मॉड्यूल `build.gradle` (app): ```kotlin apply plugin: 'com.android.applic