nayun
nayun
  • 发布:2023-04-12 15:56
  • 更新:2024-06-19 19:41
  • 阅读:431

我的项目时android离线打包方式,今天升级到最新的sdk3.7.9,进行打包后,应用无法启动

分类:uni-app

我的项目时android离线打包方式,今天升级到最新的sdk3.7.9,进行打包后,应用无法启动,卡在启动页面并报如下异常:

java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at java.lang.Class.classForName(Native Method)  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at java.lang.Class.forName(Class.java:454)  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at java.lang.Class.forName(Class.java:379)  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at io.dcloud.common.ui.b.c(Unknown Source:1)  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at io.dcloud.b.onCreate(Unknown Source:8)  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at io.dcloud.WebAppActivity.onCreate(Unknown Source:22)  
2023-04-12 15:47:37.250 28936-28936/? W/System.err:     at com.hisunflower.app.MPandoraEntryActivity.onCreate(MPandoraEntryActivity.java:30)  
Caused by: java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2  
2023-04-12 15:47:37.251 28936-28936/? W/System.err:     ... 22 more  

 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.reflect.Field java.lang.Class.getField(java.lang.String)' on a null object reference  
2023-04-12 15:47:37.307 28936-28936/? W/System.err:     at io.dcloud.common.util.AppRuntime.initUTS(Unknown Source:8)  
2023-04-12 15:47:37.307 28936-28936/? W/System.err:     at io.dcloud.b$g.a(Unknown Source:8)  
2023-04-12 15:47:37.307 28936-28936/? W/System.err:     at io.dcloud.common.ui.b.a(Unknown Source:363)  
2023-04-12 15:47:37.307 28936-28936/? W/System.err:     at io.dcloud.b.onCreate(Unknown Source:64)  
2023-04-12 15:47:37.307 28936-28936/? W/System.err:     at io.dcloud.WebAppActivity.onCreate(Unknown Source:22)

请问这个是什么原因

2023-04-12 15:56 负责人:无 分享
已邀请:
WillYang

WillYang

我也遇到了,请问解决了吗?

2***@qq.com

2***@qq.com

死坑,哎!!!!!!!!!!!!!!

genda_0927

genda_0927

解决了吗

要回复问题请先登录注册