安装后执行出错,应用崩溃

问题描述 投票:0回答:0

我从 2 个月开始开发一个音乐播放器 android 应用程序,当我将空活动添加到项目时出现运行时异常所以任何人都可以帮助我

代码。如果有人需要任何其他需要我会提供 这是获取消息的错误

AndroidRuntime:致命异常:主要 进程:com.example.h3mplayer,PID:24251 java.lang.RuntimeException:无法实例化应用程序 com.example.h3mplayer.ApplicationClass:java.lang.ClassNotFoundException:在路径上找不到类“com.example.h3mplayer.ApplicationClass”:DexPathList[[zip 文件“/data/ app/~~qxnjd6xNSZQ9V1iIt3P66w==/com.example.h3mplayer-2RfwIgETzNIfDF9WRGuoTQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~qxnjd6xNSZQ9V1iIt3P66w==/com.example.h3mplayer-2RfwIgETzNIfDF9WRGuo arm64, /system/lib64, /system/system_ext/lib64]] 在 android.app.LoadedApk.makeApplication(LoadedApk.java:1264) 在 android.app.ActivityThread.handleBindApplication(ActivityThread.java:7189) 在 android.app.ActivityThread.access$1500(ActivityThread.java:269) 在 android.app.ActivityThread$H.handleMessage(ActivityThread.java:2166) 在 android.os.Handler.dispatchMessage(Handler.java:106) 在 android.os.Looper.loop(Looper.java:257) 在 android.app.ActivityThread.main(ActivityThread.java:8218) 在 java.lang.reflect.Method.invoke(本机方法) 在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626) 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015) 由以下原因引起:java.lang.ClassNotFoundException:在路径上找不到类“com.example.h3mplayer.ApplicationClass”:DexPathList[[zip 文件“/data/app/~~qxnjd6xNSZQ9V1iIt3P66w==/com.example.h3mplayer-2RfwIgETzNIfDF9WRGuoTQ ==/base.apk"],nativeLibraryDirectories=[/data/app/~~qxnjd6xNSZQ9V1iIt3P66w==/com.example.h3mplayer-2RfwIgETzNIfDF9WRGuoTQ==/lib/arm64, /system/lib64, /system/system_ext/lib64]] 在 dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) 在 java.lang.ClassLoader.loadClass(ClassLoader.java:379) 在 java.lang.ClassLoader.loadClass(ClassLoader.java:312) 在 android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76) 在 androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:52) 在 android.app.Instrumentation.newApplication(Instrumentation.java:1208) 在 android.app.LoadedApk.makeApplication(LoadedApk.java:1256) 在 android.app.ActivityThread.handleBindApplication(ActivityThread.java:7189) 在 android.app.ActivityThread.access$1500(ActivityThread.java:269) 在 android.app.ActivityThread$H.handleMessage(ActivityThread.java:2166) 在 android.os.Handler.dispatchMessage(Handler.java:106) 在 android.os.Looper.loop(Looper.java:257) 在 android.app.ActivityThread.main(ActivityThread.java:8218) 在 java.lang.reflect.Method.invoke(本机方法) 在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626) 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015)

调试后,我也在logcat中看到消息`

kotlin exception crash android-music-player
© www.soinside.com 2019 - 2024. All rights reserved.