AndroidRuntime(21829): java.lang.NoClassDefFoundError

本文介绍了一种常见的Java编译问题及其解决方案。当遇到某些文件未被正确编译的情况时,可以通过调整项目的Java Build Path设置来解决。具体操作包括在项目属性中选择正确的文件进行导出,并执行clean操作。

解决办法:工程上点右键属性,在java build path 里的order and export 里把要编译的文件前打钩,然后再clean就可以了。

12-24 03:56:58.260 8423 9164 E AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-2 12-24 03:56:58.260 8423 9164 E AndroidRuntime: Process: com.oplus.autotest.chargemanualtest, PID: 8423 12-24 03:56:58.260 8423 9164 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/engineer/OplusEngineerManager; 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at com.oppo.autotest.support.tools.at.SystemProperties.setAsSystemServer(SystemProperties.java:76) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at com.oplus.autotest.common.core.shell.Shell.openPort(Shell.kt:209) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at com.oplus.autotest.common.core.shell.Shell.access$openPort(Shell.kt:28) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at com.oplus.autotest.common.core.shell.Shell$waitForInit$2.invokeSuspend(Shell.kt:87) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693) 12-24 03:56:58.260 8423 9164 E AndroidRuntime: Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@c262d8f, Dispatchers.Default] 12-24 03:56:58.260 8423 9164 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: android.engineer.OplusEngineerManager 12-24 03:56:58.260 8423 9164 E AndroidRuntime: ... 10 more
最新发布
12-25
机器分析结论: 应用名:健康 应用版本号:4.20.34_b780cda_250217 安装路径:null安装 应用进程名:com.heytap.health:SportDaemonService 问题类型:JavaCrash 问题原因:java.lang.NoClassDefFoundError错误 结果匹配:相关 关键日志: Line 5304: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: java.lang.NoClassDefFoundError: sf.b Line 5312: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: Caused by: java.lang.ExceptionInInitializerError Line 5323: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: Caused by: java.lang.RuntimeException: stub 堆栈信息: Line 5302: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: FATAL EXCEPTION: ES@DP_SyncCloud Line 5303: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: Process: com.heytap.health:SportDaemonService, PID: 22556 Line 5304: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: java.lang.NoClassDefFoundError: sf.b Line 5305: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at com.health.database.depend.d.N(SourceFile:1) Line 5306: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at pb.c.a(SourceFile:54) Line 5307: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at androidx.appcompat.widget.c.run(SourceFile:120) Line 5308: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at kg.a.run(SourceFile:6) Line 5309: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) Line 5310: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) Line 5311: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at java.lang.Thread.run(Thread.java:1012) Line 5312: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: Caused by: java.lang.ExceptionInInitializerError Line 5313: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at qd.a.initAfterPrivacyAgreed(SourceFile:12) Line 5314: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at pd.g.b(Unknown Source:2) Line 5315: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at pd.c.b(SourceFile:5) Line 5316: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at androidx.camera.core.p.run(SourceFile:91) Line 5317: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at kg.a.run(SourceFile:6) Line 5318: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at com.heytap.health.base.task.ThreadUtils$b.run(SourceFile:6) Line 5319: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487) Line 5320: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:264) Line 5321: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307) Line 5322: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: ... 3 more Line 5323: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: Caused by: java.lang.RuntimeException: stub Line 5324: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at com.oplus.osense.OsenseResEventClient.getInstance(Unknown Source:4) Line 5325: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: at sf.b.<clinit>(SourceFile:5) Line 5326: 03-24 15:40:12.838 22556 23127 E AndroidRuntime: ... 12 more
03-28
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值