Город МОСКОВСКИЙ
00:03:00

How to fix "Execution failed for task ':app:compileDebugKotlin'" | jvm target compatibility error.

Аватар
Реакт Для Новичков
Просмотры:
189
Дата загрузки:
28.11.2023 06:51
Длительность:
00:03:00
Категория:
Лайфстайл

Описание

Solution for Kotlin project compilation error "Execution failed for task ':app:compileDebugKotlin'".
'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.


Solution:-
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}

#java
#kotlin
#androidstudio

Рекомендуемые видео