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

前端 未结 8 1417
逝去的感伤
逝去的感伤 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:08

    Taking pointers from this answer - https://stackoverflow.com/a/49972566/7599300, I got rid by doing following steps:

    File -> Settings -> Plugins

    Unselect and select again red marked plugins.

    Click Apply and then OK.

    Android Studio will prompt to Restart, just Restart it.

    0 讨论(0)
  • 2021-02-02 10:09

    If you find this error when try to start findbugs.

    Do as : Settings - FindBugs-IDEA - General : Uncheck the “Compile affected files before analyze” and “Analyze affected files after compile”

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-02 10:15

    Recently I also faced same issue,

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

    I solved this issue by simply updating the kotlin plugin and now it is working fine.

    0 讨论(0)
  • 2021-02-02 10:21

    FYI: I removed the Kotlin directory from ~/Library/Application Support/AndroidStudio3.1, cleaned and built and everything worked fine. After putting the Kotlin directory back, cleaning and rebuilding, the same error resurfaced.

    0 讨论(0)
  • 2021-02-02 10:26

    I solved this issue in a working project.

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

    doing the following:

    • Updating the kotlin plugin.
    • File > Invalidate cache/ restart > Invalidate and restart.
    0 讨论(0)
提交回复
热议问题