Alexander Suraphel
10/07/2021, 2:40 PMMake sure you're using Kotlin 1.5.21 in your project.
Will Kotlin version 1.5.31
work?mkrussel
10/07/2021, 2:43 PM1.5.30
.
You can disable the check, and it works with 1.5.31
mkrussel
10/07/2021, 2:45 PMAlexander Suraphel
10/07/2021, 2:45 PMplugins {
id 'org.jetbrains.kotlin:android' version '1.5.21'
}
Alexander Suraphel
10/07/2021, 2:45 PMmkrussel
10/07/2021, 2:47 PMplugins {
id("com.android.application")
id("kotlin-android")
}
Alexander Suraphel
10/07/2021, 2:48 PMmkrussel
10/07/2021, 2:48 PMAlexander Suraphel
10/07/2021, 2:48 PMimplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
mkrussel
10/07/2021, 2:48 PMAlexander Suraphel
10/07/2021, 2:49 PMAlexander Suraphel
10/07/2021, 2:50 PMimplementation
mkrussel
10/07/2021, 2:51 PMAlexander Suraphel
10/07/2021, 2:51 PMAlexander Suraphel
10/07/2021, 2:52 PMmkrussel
10/07/2021, 2:52 PMmkrussel
10/07/2021, 2:52 PMAlexander Suraphel
10/07/2021, 2:59 PMapply plugin: 'kotlin-android'
Albert Chang
10/07/2021, 3:01 PMAlexander Suraphel
10/07/2021, 3:02 PMplugins {
id 'org.jetbrains.kotlin:android' version "$kotlin_version"
}
alternative syntax for:
apply plugin: 'kotlin-android'
?mkrussel
10/07/2021, 3:07 PMmkrussel
10/07/2021, 3:10 PMcompose 1.0.3
officially only supports Kotlin 1.5.30
, but it does work with Kotlin 1.5.31
. I agree disabling the version check is very risky, which is why I replaced it with my own version check in the gradle script.Alexander Suraphel
10/07/2021, 3:17 PMmkrussel
10/07/2021, 3:19 PMAlexander Suraphel
10/07/2021, 3:20 PMmkrussel
10/07/2021, 3:25 PMplugin
portion that is complaining. It is not needed because you have line 6.