Avatar ·

Android Studio में "Outdated Kotlin Runtime" चेतावनी: इसे कैसे ठीक करें?

नमस्ते! मैंने अभी-अभी Android डेवलपमेंट के लिए Kotlin सीखना शुरू किया है और एक अजीब समस्या का सामना किया। Android Studio को नवीनतम संस्करण में अपडेट करने और एक नया प्रोजेक्ट बनाने के बाद, एडिटर में एक चेतावनी दिखाई देने लगी: "Outdated Kotlin Runtime"। यह इस तरह दिखता है: एडिटर के ऊपर एक पीली पट्टी दिखाई देती है जिसमें लिखा होता है: "Outdated Kotlin Runtime | Kotlin runtime JAR files in the classpath have the version 1.4.0, but the Kotlin compiler used in the project is 1.5.0. This can lead to compilation errors or runtime crashes."\n\nमैं build.gradle फ़ाइल में Kotlin संस्करण 1.5.0 का उपयोग कर रहा हूँ:\n\n```kotlin\nplugins {\n id 'com.android.application' version '7.0.0'\n id 'org.jetbrains.kotlin.android' version '1.5.0'\n}\n```\n\nलेकिन जब मैं एमुलेटर या वास्तविक डिवाइस पर ऐप चलाता हूँ, तो कभी-कभी यह क्रैश हो जाता है।