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

后端 未结 19 942
挽巷
挽巷 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条回答
  •  不知归路
    2020-12-18 18:30

    In my case, after the update of Android Studio and plugins, I could create new projects, but my old projects were having "Gradle Sync Issues".

    The solution was in File/Project Structure.../App/Dependencies:

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 
    

    And then I just updated the Kotlin version in my project build.gradle:

    From:

    ext.kotlin_version = '1.2.30'

    To:

    ext.kotlin_version = '1.3.21'

    Then I tried Sync again.

    Obs: You can check your Kotlin version in Tools/Kotlin/Configure Kotlin Plugin Updates

提交回复
热议问题