I am able to run the project successfully. but unable to resolve this issue which is showing "kotlin Not Configured". I tried every solution for that but its always showing in the currently active file.
Please help.
I am able to run the project successfully. but unable to resolve this issue which is showing "kotlin Not Configured". I tried every solution for that but its always showing in the currently active file.
Please help.
Click on Tools -> Kotlin -> Configure Kotlin in Project then choose the configurator, any one from:
try to upgrade the kotlin version in build.gradle file
ext.kotlin_version = '1.3.72'
also in the build.gradle app module file make sure implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
in the dependencies section ,
if you see at any time update the gradle option , do so
Furthermore, if you find a line implementation "androidx.core:core-ktx:+" in your build.gradle, you may see the warning message: Avoid using + in version numbers, can lead to unpredictable and anrepeatable builds. Click on "Replace with specific version", then the current installed version replaces the "+". (For example, "1.3.2") In my case the "kotlin not configured" message and a lot of "errors" in the kotlin file disappeared.
A common reason of the "Kotlin Not Configured" message is an internal Android Studio exception due to a bad plugin. In order to fix that you should disable the bad plugin.
When such plugin crash occurs, on the "Wellcome screen" you'll see a small notification (see illustration image) where you can click it and disable the bad plugin:
In my case, it can fix by keep the version of kotlin-gradle-plugin up to date. Check the version here: https://kotlinlang.org/docs/gradle.html#plugin-and-versions
File for configuration Location
Project -> build.gradle
//example: update this dependence:
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10"
}