Inflearn コミュニティ Q&A
이번편 강의의 3:52 부분까지 공부했는데 에러가 걸립니다
作成
·
410
0
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 14s
열심히 구글링을 진행해봤지만 별다른 성과가없었습니다.
분명 apply plugin: 'kotlin-kapt' 이부분에 무엇인가 문제가
있는것 같은데 아무리 찾아봐도 나오질 않네요...
クイズ
안드로이드 프레임워크에서 액티비티나 프래그먼트에 생성자 주입 방식의 의존성 주입이 어려운 주된 이유는 무엇일까요?
Hilt 라이브러리가 필요해서
프레임워크가 직접 인스턴스 생성
싱글턴 객체만 주입 가능해서
모듈 설정이 필수라서
回答 2
0
0
최신 버전에서는 사용법이 바뀌어서 다음과 같이 작성해야 합니다. 한 번 확인 해 보세요.
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
}




