Error:Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enabled=true

前端 未结 8 1436
逝去的感伤
逝去的感伤 2021-02-02 09:36

Today I receive this error, while exactly same code was working an hour ago

Error:Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enable

8条回答
  •  遇见更好的自我
    2021-02-02 10:15

    I also encountered this problem. My Kotlin plugin was already up to date, so I knew that this wasn't going to be the problem. I ended up fixing it by following these steps:

    • Android Studio > Preferences > Appearance & Behavior > System Settings > Android SDK
    • Click the "Edit" button next to the Android SDK location path

    • Follow the wizard.

    Android Studio will now download missing or outdated SDK components.

    After following the steps above I could successfully build my project again. I still have no idea why this problem suddenly arose though.

提交回复
热议问题