Android/Kotlin 3

[Android] Inheritance from an interface with '@JvmDefault' members is only allowed with -Xjvm-default option 해결 방법

문제 상황 늘 하던 방식대로 ViewModelFactory를 구현했는데 빨간 줄이 뜬다. Inheritance from an interface with '@JvmDefault' members is only allowed with -Xjvm-default option 해결 방법 이 문제는 LifeCycle 2.5.0.alpha01 과 같은 라이브러리의 문제로 보여진다. 1. 회피하는 방법 사용하는 LifeCycle 라이브러리의 버전을 변경한다. 2. 해당 옵션 변경하여 컴파일하는 방법 build.gradle 파일에 아래의 코드를 추가하여 -Xjvm-default 옵션을 all로 변경한다. tasks.withType(KotlinCompile).configureEach { kotlinOptions { free..

Android/Kotlin 2022.03.04

[AndroidStudio] A failure occurred while executing KaptExecutionWorkAction 해결 방법

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction 이 발생했다 !! 문제 상황 Gradle JDK를 Embedded JDK로 변경 참고: https://stackoverflow.com/questions/67410992/upgrading-android-kotlin-version-to-1-5-0-throwing-error-message-on-build Upgrading Android kotlin version to 1.5.0 throwing error message on build Running with kotlin version '1.4.32' ..

Android/Kotlin 2021.09.30