l***@163.com
l***@163.com
  • 发布:2018-05-21 23:16
  • 更新:2018-06-27 10:38
  • 阅读:2424

Could not find class io.dcloud.common.adapter.util.UEH$1

分类:5+ SDK

E/dalvikvm: Could not find class 'io.dcloud.common.adapter.util.UEH$1', referenced from method io.dcloud.common.adapter.util.UEH.catchUncaughtException
W/dalvikvm: VFY: unable to resolve new-instance 708 (Lio/dcloud/common/adapter/util/UEH$1;) in Lio/dcloud/common/adapter/util/UEH;
D/dalvikvm: VFY: replacing opcode 0x22 at 0x0007
E/dalvikvm: Could not find class 'io.dcloud.common.adapter.util.UEH$2', referenced from method io.dcloud.common.adapter.util.UEH.commitErrorLog
W/dalvikvm: VFY: unable to resolve new-instance 709 (Lio/dcloud/common/adapter/util/UEH$2;) in Lio/dcloud/common/adapter/util/UEH;
D/dalvikvm: VFY: replacing opcode 0x22 at 0x001f
DexOpt: unable to opt direct call 0x0ca4 at 0x09 in Lio/dcloud/common/adapter/util/UEH;.catchUncaughtException
DexOpt: unable to opt direct call 0x0ca5 at 0x21 in Lio/dcloud/common/adapter/util/UEH;.commitErrorLog
I/AndroidRuntime: timezone is Asia/Shanghai
I/DCloud_LOG: initPath isStreamSDK=false
I/DeviceInfo: sPackageName=io.dcloud.HBuilder;
sDeviceRootDir=/storage/sdcard1;
sBaseFsRootPath=/storage/sdcard1/Android/data/io.dcloud.HBuilder/;
sBaseFsRootFullPath=file:///storage/sdcard1/Android/data/io.dcloud.HBuilder/;
sBaseResRootFullPath=file:///android_asset/;
I/DCloud_LOG: createNewFile 0:/storage/sdcard1/Android/data/io.dcloud.HBuilder/apps/
createNewFile 0:/storage/sdcard1/Android/data/io.dcloud.HBuilder/sitemap/
D/AndroidRuntime: Shutting down VM
W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x415dbe18)
E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.dcloud.HBuilder, PID: 32070
java.lang.NoClassDefFoundError: io.dcloud.common.adapter.util.UEH$1
at io.dcloud.common.adapter.util.UEH.catchUncaughtException(UEH.java:45)
at io.dcloud.application.DCloudApplication.onCreate(DCloudApplication.java:48)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4632)
at android.app.ActivityThread.access$1800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1298)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5336)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
at dalvik.system.NativeStart.main(Native Method)

2018-05-21 23:16 负责人:无 分享
已邀请:
严少

严少

我也碰到过这样的问题,不过已经解决,解决方式如下:

1、先自己创建一个 application,然后在里面声明下使用multidex
2、在AndroidManifest.xml 下application 节点加入 tools:replace="android:name"

具体可以参考以下链接

https://blog.csdn.net/a2241076850/article/details/77942633
https://blog.csdn.net/Singleton1900/article/details/48470163

  • 小明子

    感谢,关注走一波^_^

    2018-12-06 11:30

DCloud_App_Array

DCloud_App_Array

请详细描述下产生问题的具体情况,如何操作,在什么设备环境上出现的问题。

l***@163.com

l***@163.com (作者)

Android-SDK@1.9.9.45003_20180511.zip,在Android Studio 3.1.2 x64中导入HBuilder-Hello demo,build--debug,在android 4.4.4 手机上运行,一直闪退。日志如上。

l***@163.com

l***@163.com (作者)

在android 4.2.2 上同样会有如此问题,在安卓6.0这个上版本上就没有这个问题

骁骑

骁骑

低版本手机可以在gradle里把
multiDexEnabled设置成false可以解决这个问题

  • l***@163.com (作者)

    ok,已解决,谢谢

    2018-06-03 16:53

上扬

上扬

multiDexEnabled设置成false
在4.4.2手机上会报65K问题

上扬

上扬

请问楼上 你的application是继承了io.dcloud.application.DCloudApplication吗 并且在mainfest 的application节点中 name属性是设置的你写的application?

上扬

上扬

已经按严少说的方法解决,谢谢

该问题目前已经被锁定, 无法添加新回复