Xiao小树
Xiao小树
  • 发布:2023-08-11 11:49
  • 更新:2024-06-24 13:32
  • 阅读:1729

【报Bug】安卓App更新版本后,报java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.8.4

手机系统: Android

手机系统版本号: Android 7.1.1

手机厂商: 设备

手机机型: 智慧大屏

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

App升级安装完成, 由 系统其他app 唤起 当前App

预期结果:

正常打开App

实际结果:

当前App 卡在启动页(只有一个logo)

bug描述:

app是在 自助大屏设备(手机放大版)使用,原来的版本正常使用。
app根据业务需求,新增了功能。重新打包。覆盖安装后,app就一直卡在启动页面,无法进入app首页。
调用日志,看到 java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2报错。

手动清除App应用--清除缓存后, 重启App ,又正常了!!

请教下是什么原因引起的,如果避免。谢谢

2023-08-11 11:49 负责人:无 分享
已邀请:
9***@qq.com

9***@qq.com

请问解决了嘛?

x***@163.com

x***@163.com

解决了吗

w***@enlink.cn

w***@enlink.cn

我还是第一次跑官方demo,那么难产的。

2***@qq.com

2***@qq.com

java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at java.lang.Class.classForName(Native Method)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at java.lang.Class.forName(Class.java:454)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at java.lang.Class.forName(Class.java:379)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at io.dcloud.common.ui.PrivacyManager.isDebugMode(Unknown Source:1)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at io.dcloud.b.onCreate(Unknown Source:8)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at io.dcloud.WebAppActivity.onCreate(Unknown Source:22)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.Activity.performCreate(Activity.java:8592)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.Activity.performCreate(Activity.java:8565)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1344)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4733)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4983)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:123)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3059)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.os.Handler.dispatchMessage(Handler.java:117)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.os.Looper.loopOnce(Looper.java:205)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.os.Looper.loop(Looper.java:293)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.ActivityThread.loopProcess(ActivityThread.java:9934)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at android.app.ActivityThread.main(ActivityThread.java:9923)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at java.lang.reflect.Method.invoke(Native Method)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.common.util.net.http.LocalServer2" on path: DexPathList[[zip file "/data/app/ZY1_OxVbXQhoBzSWTxZ1_w==/uni.UNI7E6D63B-cdg7dQBN-zhVjFh1UvLr7w==/base.apk"],nativeLibraryDirectories=[/data/app/ZY1_OxVbXQhoBzSWTxZ1_w==/uni.UNI7E6D63B-cdg7dQBN-zhVjFh1UvLr7w==/lib/arm64, /data/app/~~ZY1_OxVbXQhoBzSWTxZ1_w==/uni.UNI7E6D63B-cdg7dQBN-zhVjFh1UvLr7w==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/lib64/module/multimedia, /system/product/lib64]]
2024-02-01 15:43:19.479 11473-11473 System.err uni.UNI7E6D63B W at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
2024-02-01 15:43:19.480 11473-11473 System.err uni.UNI7E6D63B W at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
2024-02-01 15:43:19.480 11473-11473 System.err uni.UNI7E6D63B W at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2024-02-01 15:43:19.480 11473-11473 System.err uni.UNI7E6D63B W ... 23 more

Xiao小树

Xiao小树 (作者)

统一回复:没解决。没有接到官方的答复,目前只能碰到问题 手动清楚缓存了

4***@qq.com

4***@qq.com

检查一下这配置有没有对,我碰到,就是这样解决了

要回复问题请先登录注册