Outdated Kotlin Runtime warning in Android Studio

前端 未结 15 1646
温柔的废话
温柔的废话 2020-11-29 19:43

After downloaded and installed latest Kotlin plugin I have Outdated Kotlin Runtime warning from Android Studio that telling me:

Your

15条回答
  •  我在风中等你
    2020-11-29 20:22

    There are two pieces you may want to update:

    1. kotlin runtime for the project
    2. kotlin plugin

    The answer by Ivo Stoyanov shows how to do this using the android studio menus. When I got the error message and tried this (updating the kotlin plugin) alone, it still complained about the kotlin runtime. You can update that on a project by project basis, by adding the line on ext.kotlin_version to the project build gradle, as some of the other answers indicate. But you'll need to know the kotlin runtime version for that. Alternatively, you can also do it through the menus, as I show here below, with the bonus that android studio shows you the available versions, and you can pick the most recent.

    And then android studio will add in the appropriate line in your project build gradle.

提交回复
热议问题