개발 환경 설정
플러터와 달리 개발 환경 설정이 쉽지 않았다.
뭐만 하면 충돌나는데 충돌 사유도 명확하지 않아서 이리저리 헤메게 되었다.
retrofit + okhttp
implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
moshi
runtimeOnly("com.squareup.retrofit2:converter-moshi:2.11.0")
runtimeOnly("cohttp://m.squareup.moshi:moshi:1.15.2")
runtimeOnly("cohttp://m.squareup.moshi:moshi-kotlin:1.15.2")
runtimeOnly("cohttp://m.squareup.moshi:moshi-adapters:1.15.2")
lottie
runtimeOnly("com.airbnb.android:lottie-compose:6.6.2")
hilt
runtimeOnly("cohttp://m.google.dagger:hilt-android:2.55")
runtimeOnly("androidx.hilt:hilt-work:1.2.0")
runtimeOnly("androidx.hilt:hilt-navigation-compose:1.2.0")
ksp 'com.google.dagger:hilt-compiler:2.55'
dagger
implementation("cohttp://m.google.dagger:dagger-android:2.55")
implementation("cohttp://m.google.dagger:dagger:2.55")
android-work-runtime
implementation("cohttp://m.google.dagger:dagger-android:2.55")
implementation("cohttp://m.google.dagger:dagger:2.55")
라이브러리 추가 설정
project build.gradle
module build.gradle
개발환경 설정이 어마어마하게 길었다.
호환성도 Flutter와 달리 어떤 부분이 문제인지 명확히 짚어주질 않아서
이리저리 헤메는 동안 거의 하루가 걸렸다.
버전 호환성 체크에 하루가 걸리다니, 네이티브의 길은 멀고도 험하다.
'프론트엔드 > Android' 카테고리의 다른 글
[Android/Kotlin] 앱 개발 프로젝트 (0) | 2025.03.02 |
---|