반응형
kotlinOptions {
jvmTarget = '1.8'
}
kotlin {
jvmToolchain(17)
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
또는 -------------------------------------------------
kotlinOptions {
jvmTarget = '1.8'
}
kotlin {
jvmToolchain(17)
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
buildFeatures{
viewBinding = true
}
build.gradle에 추가
Execution failed for task ':app:kapGenerateStubsDebugKotlin
>'compileDeugJavaWithJavac' task (current target is 1.8) and 'kapGenerateStubsDebugKotlin' task (current target is 17) jvm target compatiability should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
Configure a Gradle project | Kotlin
kotlinlang.org
반응형
'개발일기' 카테고리의 다른 글
23.09.14 부트캠프 65일차 TIL 패키지 안 패키지 만들기 (0) | 2023.09.14 |
---|---|
23.09.13 부트캠프 64일차 TIL googleMap (0) | 2023.09.13 |
23.09.11 부트캠프 62일차 KPT (0) | 2023.09.12 |
23.09.11 부트캠프 62일차 TIL (0) | 2023.09.12 |
23.09.09 부트캠프 60일차 TIL (0) | 2023.09.09 |