Android/Kotlin
Caused by: org.gradle.api.GradleException: 'compileDebugJavaWithJavac' task (current target is 1.8) and 'kaptGenerateStubsDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
DnaJ
2023. 6. 16. 18:14
반응형
Android Studio 를 업데이트 하고 Gradle 업데이트를 하니
아래와 같은 에러가 발생했다.
Caused by: org.gradle.api.GradleException: 'compileDebugJavaWithJavac' task (current target is 1.8) and 'kaptGenerateStubsDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
compileOptions에서 JavaVersion 을 업데이트 하면 된다.
Gradle 파일에 따라 아래와 같이 수정하면 된다.
https://play.google.com/store/apps/details?id=com.danchoo.tagalbum&hl=ko
태그앨범 - Google Play 앱
사진과 앨범을 태그로 관리하세요. 결혼식, 팬클럽, 동호회등 원하는 카테고리를 만들어 정리해보세요. 사진에 태그를 설정하여 손쉽게 찾아보세요!
play.google.com
compileOptions.run {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
or
composeOptions {
kotlinCompilerVersion = JavaVersion.VERSION_17
kotlinCompilerExtensionVersion = JavaVersion.VERSION_17
}
https://smartstore.naver.com/happysiso
해피시소마켓 : 네이버쇼핑 스마트스토어
SISO
smartstore.naver.com
반응형