Logcat
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.chapter1/com.example. chapter1.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example. chapter1.MainActivity" on path: DexPathList[[zip file "/data/app/~~iGoWWzwYpuO0hcYOGqNVJA==/com.example.chapter1-Vnz3cm0738yNZXkWbMW3OQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~iGoWWzwYpuO0hcYOGqNVJA==/com.example.chapter1-Vnz3cm0738yNZXkWbMW3OQ==/lib/x86_64, /system/lib64, /system_ext/lib64]]
🟡 오류 해결하기 🟡
app수준 build.gradle에 적힌 namespace와 applicationId가 실제 디렉토리와 일치하도록 변경해 주기
'개발 과정 > 문제 해결' 카테고리의 다른 글
BuildConfig import가 안 될 때 해결 방법 (0) | 2024.11.18 |
---|---|
R이 import 되지 않을 때 해결 방법 (0) | 2024.11.17 |
fatal: detected dubious ownership in repository at '경로' 오류 해결하기 (1) | 2024.11.15 |
Hilt 오류 해결 방법 (0) | 2024.11.14 |
MotionLayout Motion Editor cannot be used 오류 해결하기 (0) | 2024.11.13 |