Updated to Android Studio 3.0. Getting a “Kotlin not configured” error

后端 未结 19 937
挽巷
挽巷 2020-12-18 17:59

I just updated to Android Studio 3.0 and I\'m getting this error with an existing project:

Kotlin not configured

When I go to

19条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 18:15

    I first tried with invalidate cache/ restart option but it doesn't help me.

    When I updated Kotlin to 1.1.60 in project's gradle file, problem is solved.

    Also, use this in app's gradle for stdlib

    implementation "org.jetbrains.kotlin:kotlin-stdlib:1.1.60" 
    

    instead of

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60"
    

提交回复
热议问题