Arkadii Ivanov
06/02/2021, 5:15 PMkotlinCompilerVersion
setting from my app module's build.gradle
file, but I'm getting the following error:
This version (1.0.0-beta05) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.4.31 which is not known to be compatible.
I'm using Kotlin 1.4.32
actually and AS Arctic Fox 2020.3.1 Beta 3
. If I keep the setting then the project compiles just fine. Would could be the issue?Arkadii Ivanov
06/02/2021, 5:16 PMbuild.gradle
:
buildscript {
ext {
decompose_version = '0.2.4'
kotlin_version = "1.4.32"
compose_version = '1.0.0-beta05'
androidx_appcompat_version = '1.3.0'
androidx_core_ktx_version = '1.3.2'
android_material_version = '1.3.0'
androidx_lifecycle_common_java8_version = '2.3.1'
androidx_activity_version = '1.3.0-alpha05'
androidx_activity_compose_version = '1.3.0-alpha05'
android_material_version = '1.3.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
Arkadii Ivanov
06/02/2021, 5:16 PMplugins {
id "com.android.application"
id "kotlin-android"
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
// kotlinCompilerVersion kotlin_version
}
}
dependencies {
implementation project(":shared")
implementation "androidx.appcompat:appcompat:$androidx_appcompat_version"
implementation "com.google.android.material:material:$android_material_version"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling:$compose_version"
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.material:material-icons-core:$compose_version"
implementation "androidx.activity:activity-compose:$androidx_activity_compose_version"
}
Colton Idle
06/02/2021, 5:17 PMJavier
06/02/2021, 5:18 PMArkadii Ivanov
06/02/2021, 5:18 PMColton Idle
06/02/2021, 5:20 PMArkadii Ivanov
06/02/2021, 5:21 PMbeta07
just out of curiosity, still the error.Javier
06/02/2021, 5:22 PMJavier
06/02/2021, 5:22 PMColton Idle
06/02/2021, 5:23 PMkotlinOptions {
jvmTarget = "1.8"
useIR = true
}
composeOptions {
kotlinCompilerVersion = "1.4.32"
kotlinCompilerExtensionVersion = "1.0.0-beta07"
}
Arkadii Ivanov
06/02/2021, 5:24 PMbeta07
, so I assume it should work? Unless I'm missing something. I'm using pure Jetpack Compose for Android currently.Javier
06/02/2021, 5:25 PMArkadii Ivanov
06/02/2021, 5:28 PMxxfast
06/03/2021, 12:57 AMkotlinCompilerVersion
even when deprecated.
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
i dont trust this 🤔deviant
06/03/2021, 1:07 PM