龙工22332
龙工22332
  • 发布:2024-08-26 17:24
  • 更新:2024-10-16 22:14
  • 阅读:303

java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2(已解决)

分类:uni-app

W callback not found for CALLBACK_AVAILABLE message
2024-08-26 17:14:00.929 5929-5929 Html5Plus-onCreate com.android.HelloH5 E 1724663640929
2024-08-26 17:14:00.935 5929-5929 WebAppActivity com.android.HelloH5 D onCreate
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at java.lang.Class.classForName(Native Method)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at java.lang.Class.forName(Class.java:454)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at java.lang.Class.forName(Class.java:379)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at io.dcloud.common.ui.PrivacyManager.isDebugMode(Unknown Source:1)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at io.dcloud.b.onCreate(Unknown Source:8)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at io.dcloud.WebAppActivity.onCreate(Unknown Source:22)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.Activity.performCreate(Activity.java:8341)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.Activity.performCreate(Activity.java:8320)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3622)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3778)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:138)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2024-08-26 17:14:00.943 5929-5929 System.err com.android.HelloH5 W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2303)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at android.os.Handler.dispatchMessage(Handler.java:106)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at android.os.Looper.loopOnce(Looper.java:201)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at android.os.Looper.loop(Looper.java:288)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at android.app.ActivityThread.main(ActivityThread.java:7884)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at java.lang.reflect.Method.invoke(Native Method)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.common.util.net.http.LocalServer2" on path: DexPathList[[zip file "/data/app/MCugAj9WLSV3Deu58cnnxA==/com.android.HelloH5-TYQvq71ceS-9K0L8YpHxyg==/base.apk"],nativeLibraryDirectories=[/data/app/MCugAj9WLSV3Deu58cnnxA==/com.android.HelloH5-TYQvq71ceS-9K0L8YpHxyg==/lib/x86, /data/app/~~MCugAj9WLSV3Deu58cnnxA==/com.android.HelloH5-TYQvq71ceS-9K0L8YpHxyg==/base.apk!/lib/x86, /system/lib, /system/system_ext/lib, /system/product/lib, /system/vendor/lib]]
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2024-08-26 17:14:00.944 5929-5929 System.err com.android.HelloH5 W ... 22 more
2024-08-26 17:14:00.952 5929-5929 android.HelloH5 com.android.HelloH5 W Accessing hidden field Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; (unsupported, JNI, allowed)
2024-08-26 17:14:00.952 5929-5929 android.HelloH5 com.android.HelloH5 W Accessing hidden field Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; (unsupported, JNI, allowed)
2024-08-26 17:14:00.952 5929-5929 android.HelloH5 com.android.HelloH5 W Accessing hidden field Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; (unsupported, JNI, allowed)
2024-08-26 17:14:00.952 5929-5929 android.HelloH5 com.android.HelloH5 W Accessing hidden field Ldalvik/system/DexFile;->mFileName:Ljava/lang/String; (unsupported, JNI, allowed)
2024-08-26 17:14:00.972 5929-5929 AppRuntime com.android.HelloH5 E initUTS error java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.reflect.Field java.lang.Class.getField(java.lang.String)' on a null object reference
2024-08-26 17:14:00.973 5929-5929 download_manager com.android.HelloH5 D BaseActivity onCreate
2024-08-26 17:14:00.974 5929-5929 android.HelloH5 com.android.HelloH5 D onRuntimePreCreate appid=Main_App
2024-08-26 17:14:00.977 5929-5929 splash com.android.HelloH5 I WebAppActivity.onCreateSplash().appid=null this.appid=Main_App this=io.dcloud.PandoraEntryActivity@1daa7b9
2024-08-26 17:14:00.977 5929-5929 splash com.android.HelloH5 I WebAppActivity.onCreateSplash().mSplashView is Null =true
2024-08-26 17:14:00.977 5929-5929 WebAppActivity com.android.HelloH5 I onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.HelloH5/io.dcloud.PandoraEntryActivity (has extras) }
2024-08-26 17:14:00.977 5929-5929 WebAppActivity com.android.HelloH5 I onCreateSplash hasSplash=true
2024-08-26 17:14:00.977 5929-5929 WebAppActivity com.android.HelloH5 I onCreateSplash __splash_mode__=auto
2024-08-26 17:14:01.002 5929-5929 platform com.android.HelloH5 I ClassNotFoundException io.dcloud.appstream.actionbar.StreamAppActionBarUtil checkNeedTitleView
2024-08-26 17:14:01.007 5929-5929 WebAppActivity com.android.HelloH5 D checkAutoHide false
2024-08-26 17:14:01.014 5929-5929 android.HelloH5 com.android.HelloH5 I onResume appid=Main_App
2024-08-26 17:14:01.014 5929-5929 Html5Plus-onResume com.android.HelloH5 E 1724663641014
2024-08-26 17:14:01.060 5929-5929 ImageLoader com.android.HelloH5 W memoryCache() and memoryCacheSize() calls overlap each other
2024-08-26 17:14:01.082 5929-5929 ImageLoader com.android.HelloH5 W memoryCache() and memoryCacheSize() calls overlap each other
2024-08-26 17:14:01.082 5929-5929 ImageLoader com.android.HelloH5 W discCache(), discCacheSize() and discCacheFileCount calls overlap each other
2024-08-26 17:14:01.094 5929-5940 System com.android.HelloH5 W A resource failed to call close.
2024-08-26 17:14:01.094 5929-5940 System com.android.HelloH5 W A resource failed to call close.
2024-08-26 17:14:01.094 5929-5940 System com.android.HelloH5 W A resource failed to call close.
2024-08-26 17:14:01.094 5929-5940 System com.android.HelloH5 W A resource failed to call close.
2024-08-26 17:14:01.095 5929-5940 System com.android.HelloH5 W A resource failed to call close.
2024-08-26 17:14:01.166 5929-5929 uni-AD com.android.HelloH5 E wm adapter version not match
2024-08-26 17:14:01.176 5929-5929 jse_precompilejs com.android.HelloH5 I 1
2024-08-26 17:14:01.193 5929-5954 TrafficStats com.android.HelloH5 D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2024-08-26 17:14:01.202 5929-5929 Main_Path_Main_App com.android.HelloH5 I onCreate appid=Main_App
2024-08-26 17:14:01.205 5929-5929 Main_Path_Main_App com.android.HelloH5 I onRuntimeCreate appid=Main_App
2024-08-26 17:14:01.216 5929-5929 DCloud_LOG com.android.HelloH5 E fmgr no dp
2024-08-26 17:14:01.230 5929-5929 Main_Path com.android.HelloH5 E FeatureMgr.loadBootOptions io.dcloud.feature.statistics.StatisticsBootImpl
2024-08-26 17:14:01.231 5929-5929 Main_Path com.android.HelloH5 E FeatureMgr.loadBootOptions io.dcloud.net.DownloaderBootImpl
2024-08-26 17:14:01.309 5929-5929 DeviceInfo com.android.HelloH5 I old_app_modify_date=1724663529000
2024-08-26 17:14:01.309 5929-5929 DeviceInfo com.android.HelloH5 I App Modify Date=1724663529000;_ret=false
2024-08-26 17:14:01.309 5929-5929 DCloud_LOG com.android.HelloH5 E channel:;ver:1.9.9.82145;max:3;trim:0;dg:false
2024-08-26 17:14:01.333 5929-5929 shutao com.android.HelloH5 E pass _permissionEle=[uninview]
2024-08-26 17:14:01.389 5929-5954 jse_precompilejs com.android.HelloH5 I 9
2024-08-26 17:14:01.393 6057-6057 Zygote com.android.HelloH5 I seccomp disabled by setenforce 0

2024-08-26 17:24 负责人:无 分享
已邀请:
龙工22332

龙工22332 (作者)

感谢uni-app相关人员解答疑惑,该问题盲猜是贵司封装包的时候没把这个包打上去,所以不纠结这个,另外报错的这部分代码没有参与到uniapp业务逻辑也就是说uni.request请求实际上没有使用到这个类,所以可以先忽视这个报错。统一全端要解决很多问题滴,不是那么容易,希望贵司越来越好!

  • h***@163.com

    hi,这个怎么解决的?

    2024-10-16 22:12

unicorn_up

unicorn_up

java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2

这个报错, 是uniapp的调试服务在离线打包工程环境下的报错.

不过在排查问题的时候很容易误导排查的人, 并且也不能确定某些情况下的白屏或者加载异常是否跟这个报错无关.

h***@163.com

h***@163.com - Fox

大佬,解决方案再详细点呗

  • unicorn_up

    简单来说. 这个报错确实存在, 但是可能跟你遇到的问题无关. 你可以忽略这个报错, 排查其它地方的原因.

    2024-10-17 18:23

要回复问题请先登录注册