안드로이드 Java 프로젝트에 코틀린 클래스를 넣었더니, 다음 에러가 발생했다.
| Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15 ... |
구글링, build.gradle 에 ext.kotlin_version = '1.3.50' => ext.kotlin_version = '1.6.0' 로 변경하니 해결됐다.
'android > 문제해결' 카테고리의 다른 글
| android java.lang.exceptionininitializererror (0) | 2022.06.26 |
|---|---|
| RecyclerView의 ViewHolder에서 adapterPostion이 deprecated 됨 (0) | 2022.06.25 |

최근댓글