Android/Error
4
Build.gradle์์ ๋ฐ์ํ๋ kotlin version ์๋ฌ
๋ฐ๋จ...Jetpack Compose Navigation์ ํ๊ณ ์ถ์์ต๋๋ค.๊ทธ๋์ app๋จ build.gradle์ ์๋์ ์ฝ๋๋ฅผ ์
๋ ฅํด์ฃผ๊ณ ๋น๋ํด์ฃผ์์ต๋๋ค. implementation "androidx.navigation:navigation-compose:2.6.0" ๊ทธ๋ฌ๋๋ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ์ต๋๋ค. Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.20 (org.jetbrains.kotlin:kotlin-stdlib:1.8.20) and kotlin-stdlib-jdk8-1.7.20 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20)Dupli..
2023.07.20
Android/Error
Could not identify launch activity: Default Activity not found ์๋ฌ ํด๊ฒฐ
Could not identify launch activity: Default Activity not foundError while Launching activityFailed to launch an application on all devices ์๋ฌ๊ฐ ๋ฐ์ํ๋ค๋ฉด Manifest ํ์ผ์ ํ์ธํด์ผ ํฉ๋๋ค. ์์ ๊ฐ์ด LAUNCHER๋๋ activity๊ฐ ์์ฑ๋์ด ์์ด์ผ ํ๋๋ฐ ๊ฐ ๋๋ฝ๋์๊ฑฐ๋ ๊ฐ ๋๋ฝ๋์ด ์์ ๊ฐ๋ฅ์ฑ์ด ๋์ต๋๋ค. ๋ง์ฝ ์ถ๊ฐ๊ฐ ๋์ด์๋๋ฐ๋ ํด๋น ์๋ฌ๊ฐ ๋ฐ์ํ๋ค๋ฉด..File > Invalidate Caches > Invalidate and Restart ๋ก ์ฌ๋น๋ ํ๋ ๊ฒ๋ ์์ฃผ ์ข์.. ..
2023.07.07
Android/Error
@hiltandroidapp to have a value. did you forget to apply the gradle plugin ์๋ฌ ํด๊ฒฐ
์๋๋ก์ด๋ ํ๋ก์ ํธ์ Hilt๋ฅผ ์ค์ ํ ๋๋ํ๋๋ง ๋น ์ ธ๋ ๋น๋๊ฐ ์๋๋ ์๋ฌ๊ฐ ๋ฐ์ํ๊ธฐ ๋๋ฌธ์ ๋น ์ง ๊ฒ ์๋ ์ง ์ฃผ์ํด์ผ ํฉ๋๋ค. ์ ๋ชฉ๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ์ ๋๋ gradle์ ๋น ๋จ๋ฆฐ ๊ฒ ์๋์ง ํ์ธํด์ผ ํ๋๋ฐ ์ฐ์ app ์์ค์ build.gradle ์๋ ์๋์ ๊ฐ์ ๋ด์ฉ๋ค์ด ๋ค์ด๊ฐ ์์ด์ผ ํฉ๋๋ค.plugins { id 'kotlin-kapt' id 'dagger.hilt.android.plugin'}dependencies { implementation "com.google.dagger:hilt-android:2.44" kapt "com.google.dagger:hilt-android-compiler:2.44"} ๊ทธ๋ฆฌ๊ณ project ์์ค์ build.gradle ์..
2023.07.04
Android/Error
[Android] Waiting for target device to come online ์ค๋ฅ๋ ๋
๋ค์ด๊ฐ๊ธฐ์๋๋ก์ด๋ ์คํ๋์ค์์ Run์ ์คํํ ๋,Waiting for target device to come online .. ๋ผ๋ ๋ฌธ๊ตฌ๊ฐ ๋จ๋ฉด์ ๋ฌดํ ๋ก๋ฉ์ ๋น ์ ธ๋ฒ๋ฆฐ ์ ์ด ์์ต๋๋ค ๐ข๊ทธ๋ด ๋ ํด๊ฒฐํ ์ ์๋ ๋ช ๊ฐ์ง ๋ฐฉ๋ฒ๋ค์ ์ ์ด๋ณด๋ ค๊ณ ํฉ๋๋ค! ๋ฐฉ๋ฒ(1) AVD Manager -> Wipe Data์ด ์์
์ ํด๋น ๊ฐ์ ๋๋ฐ์ด์ค์ ๋ฐ์ดํฐ๋ฅผ ์ญ์ ์ํต๋๋ค.๋๋ถ๋ถ ์ด ์์
์ผ๋ก ๋ง์ด ํด๊ฒฐ๋๋ค๊ณ ํด์. (2) AVD Manager -> Cold Boot Now์๋ฎฌ๋ ์ดํฐ๋ฅผ ์ฌ๋ถํ
์์ผ์ฃผ๋ ๋ฐฉ๋ฒ์
๋๋ค.ํธ๋ํฐ์ด ๋จนํต์ผ ๋ ๊ป๋ค๊ฐ ํค๋ ๋ฐฉ๋ฒ๊ณผ ๋น์ทํ ๋ฐฉ๋ฒ์
๋๋ค. (3) Invalidate Caches / Restart์บ์๋ฅผ ๋ฌดํจํํ๋ค. ์ฆ, ์บ์ ๋น์ฐ๋ ๋ฐฉ๋ฒ์
๋๋ค.์ด ์ค๋ฅ์ํฉ ์ธ์๋ ์๋๋ก์ด๋ ์คํ๋์ค๊ฐ ๋จนํต์ผ ๋ ..
2023.06.30
Android/Error