내 앱이 자꾸 실패하는 이유

문의 시 사용하시는 SDK 버전 정보와 플랫폼(Android / iOS) 및 디벨로퍼스 앱ID를 알려주세요. SDK 버전 : ‘>=3.0.6 <4.0.0’ 앱 아이디 : 998647 안녕하세요 ! 이번에 학교 프로젝트 겸 취미로 앱을 개발하는 사학과 1학년입니다! 아직 3개월차라 매우 미숙한 점 죄송합니다… 다름이 아니라 학교 프로젝트로 논문 정보 관련된 어플을 개발중에 있습니다! 근데 컴파일을 하고 구글에 출시하는데 자꾸 오류가 생겨 버전 10까지 만들고 있습니다… 이유는 비정상 종료라는데 어디가 문제인지 모르겠습니다… 어떻게 해결하는지 알려주실 분 구합니다… 알려주시면 사례 + 네이버 내공 7000 드리겠습니다

심각한 예외
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.chamgohae123/com.chamgohae123.MainActivity}: java.lang.ClassNotFoundException: Didn’t find class “com.chamgohae123.MainActivity” on path: DexPathList[[zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/base.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk”],nativeLibraryDirectories=[/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/lib/arm64, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/base.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
FATAL EXCEPTION: main
Process: com.chamgohae123, PID: 24323
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.chamgohae123/com.chamgohae123.MainActivity}: java.lang.ClassNotFoundException: Didn’t find class “com.chamgohae123.MainActivity” on path: DexPathList[[zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/base.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk”],nativeLibraryDirectories=[/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/lib/arm64, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/base.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3347)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.chamgohae123.MainActivity” on path: DexPathList[[zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/base.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk”, zip file “/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk”],nativeLibraryDirectories=[/data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/lib/arm64, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/base.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk!/lib/arm64-v8a, /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(Unknown Source:0)
at android.app.Instrumentation.newActivity(Instrumentation.java:1253)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3335)
… 11 more
Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.arm64_v8a.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:367)
at dalvik.system.DexFile.(DexFile.java:109)
at dalvik.system.DexFile.(DexFile.java:82)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104)
at dalvik.system.PathClassLoader.(PathClassLoader.java:74)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114)
at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:898)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:982)
at android.app.LoadedApk.getResources(LoadedApk.java:1214)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2663)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2655)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6602)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
… 6 more
Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.en.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:367)
at dalvik.system.DexFile.(DexFile.java:109)
at dalvik.system.DexFile.(DexFile.java:82)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104)
at dalvik.system.PathClassLoader.(PathClassLoader.java:74)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114)
at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:898)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:982)
at android.app.LoadedApk.getResources(LoadedApk.java:1214)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2663)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2655)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6602)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
… 6 more
Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/~~uJ6tazglh8NiieX_1Va9FQ==/com.chamgohae123-E49qdZDnSVYBts2NfMPW_Q==/split_config.xxhdpi.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:367)
at dalvik.system.DexFile.(DexFile.java:109)
at dalvik.system.DexFile.(DexFile.java:82)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104)
at dalvik.system.PathClassLoader.(PathClassLoader.java:74)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114)
at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:898)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:982)
at android.app.LoadedApk.getResources(LoadedApk.java:1214)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2663)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2655)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6602)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
… 6 more

혹시 아시는분 계실까요…ㅠ

안녕하세요

에러 로그 내용을 봤을 때 앱의 동작 중에 MainActivity를 참조하려하는데, 해당 클래스를 찾지 못해서 에러가 발생하는 것으로 보이네요.

이 에러는 코드 없이 로그만 보고는 해결할 수 없어서 정확한 답변을 드리기는 어렵습니다.

우선 AndroidManifest.xml 파일에 MainActivity가 제대로 선언되어있는지 확인해보셔야할 것 같고, 그 다음에 코드 상에서 MainActivity를 참조하려고 하는 곳이 어디인지 파악하면서 디버깅하셔야할 것 같습니다