분명히 lombok의 @Data 어노테이션으로 getter&setter 자동 설정을 해 줬는데도, 위와 같은 에러가 떳을 때!
Error!
//room
implementation 'androidx.room:room-runtime:2.2.5'
annotationProcessor 'androidx.room:room-compiler:2.2.5'
//lombok
compileOnly "org.projectlombok:lombok:1.18.12"
annotationProcessor "org.projectlombok:lombok:1.18.12"
해결! - app.gradle에 lombok을 room 보다 먼저 적어주면 된다!
//lombok
compileOnly "org.projectlombok:lombok:1.18.12"
annotationProcessor "org.projectlombok:lombok:1.18.12"
//room
implementation 'androidx.room:room-runtime:2.2.5'
annotationProcessor 'androidx.room:room-compiler:2.2.5'
반응형
'Platform > Android' 카테고리의 다른 글
[debug] Room Database / SharedPreferences 디버깅 (0) | 2020.04.14 |
---|---|
[Error] Room - cannot find implementation for 패키지명. (0) | 2020.04.14 |
[Error] lombok 적용이 안될 때-Annotation processors must be explicitly declared now. (0) | 2020.04.13 |
[Jetpack] 0. 개요 (2) | 2020.04.03 |
ViewModel / LiveData / RecyclerView (0) | 2020.03.27 |