강의

멘토링

커뮤니티

Inflearn Community Q&A

sykim87705517's profile image
sykim87705517

asked

Modern Android - Getting Started with Jetpack Compose

TodoList project 빌드에러가 발생하는데 확인 부탁드리겠습니다!

Written on

·

378

0

https://github.com/junsuk5/android-compose/tree/master/examples/TodoList
 
위 프로젝트 빌드에러가 발생하네요..
 
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
   > 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.
 
jetpackkotlinandroid

Answer 3

1

질문과 답변 내용이 도움이 많이 되고 있습니다. 감사합니다.

1

survivalcoding님의 프로필 이미지
survivalcoding
Instructor

Room 에서 에러나는 것 확인해서 버전 올려서 잘 되는 것 확인하여 github에 반영하였습니다.

// Room
def room_version = "2.4.2"
sykim87705517님의 프로필 이미지
sykim87705517
Questioner

감사합니다!
혹시 room에서 error가 발생하는지 확인은 어떻게 하셨는지 여쭈어봐도 될까요?

따로 디버깅하시는 프로세스가 있으신가 해서요 ~

survivalcoding님의 프로필 이미지
survivalcoding
Instructor

에러 메시지에 DB 관련된 에러 문구들이 주로 있어서 room쪽이지 않을까 의심을 했습니다.

Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64

at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333)

at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64)

at androidx.room.verifier.DatabaseVerifier.<clinit>(DatabaseVerifier.kt:71)

... 50 more

sykim87705517님의 프로필 이미지
sykim87705517
Questioner

저는 에러 메시지가 표시가 안됬었는데.. 설정이 달랐던걸까요?

survivalcoding님의 프로필 이미지
survivalcoding
Instructor

제 화면입니다. 참고하세요.

sykim87705517님의 프로필 이미지
sykim87705517
Questioner

스튜디오 버전이 어떻게 되시나요?

survivalcoding님의 프로필 이미지
survivalcoding
Instructor

스튜디오 버전과는 무관할 겁니다. 예전부터 이런 화면이었어서.

화면 구성을 잘 해 보시면 보이지 않을까 합니다.

저는 현재 Stable 최신버전인 BumbleBee 2021.1.1 Patch 2 입니다.

0

sykim87705517님의 프로필 이미지
sykim87705517
Questioner

화면은 같아보이긴 한데... ㅎㅎ; 

이상하네요..

 

sykim87705517님의 프로필 이미지
sykim87705517
Questioner

아하 빌드시
--stacktrace 옵션을 붙이니 보이네요..

survivalcoding님의 프로필 이미지
survivalcoding
Instructor

아하. 제가 따로 옵션 붙인 기억은 없는데 희안하네요 ㅎㅎ

sykim87705517's profile image
sykim87705517

asked

Ask a question