Today I receive this error, while exactly same code was working an hour ago
Error:Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enable
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.