Lspring
Lspring
  • 发布:2018-07-02 08:56
  • 更新:2018-07-09 14:58
  • 阅读:1359

离线打包android 4.4系统奔溃

分类:5+ SDK

如题,离线打包的时候android 5和5以上的都没问题,但是5以下的4.4一运行的时候就奔溃,报错:
Process: cn.zhongyan.mobile.ysq, PID: 10025
java.lang.NoClassDefFoundError: io.src.dcloud.adapter.DCloudAdapterUtil
at io.dcloud.common.adapter.util.SP.getOrCreateBundle(SP.java:123)
at io.dcloud.common.adapter.util.SP.getBundleData(SP.java:108)
at io.dcloud.common.adapter.util.SP.getBundleData(SP.java:94)
at io.dcloud.common.util.BaseInfo.isStreamSDK(BaseInfo.java:833)
at io.dcloud.common.adapter.util.DeviceInfo.initPath(DeviceInfo.java:209)
at io.dcloud.common.adapter.util.UEH.catchUncaughtException(UEH.java:43)
at io.dcloud.application.DCloudApplication.onCreate(DCloudApplication.java:43)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1016)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4590)
at android.app.ActivityThread.access$1500(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1414)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5348)
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:829)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
at dalvik.system.NativeStart.main(Native Method)

请问有什么好的方法解决

2018-07-02 08:56 负责人:无 分享
已邀请:
5***@qq.com

5***@qq.com

楼主这个问题解决了吗????

  • Lspring (作者)

    解决了,android studio 的 app.build文件把targetSDK 改为21 23也行

    2018-07-09 16:13

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