全部产品
  • 首页 > 
  • 集成移动推送Android SDK时日志出现“load sdk file fail”信息

集成移动推送Android SDK时日志出现“load sdk file fail”信息

KB: 71143

 · 

更新时间:2020-08-11 11:15

概述

集成移动推送Android SDK,且首次启动应用时,日志中出现“load sdk file fail”信息。

E/CrashUtils: load sdk file fail:
        java.io.FileNotFoundException: /data/user/0/com.push.maindemo/files/com_alibaba_aliyun_crash_defend_sdk_info: open failed: ENOENT (No such file or directory)
            at libcore.io.IoBridge.open(IoBridge.java:452)
            at java.io.FileInputStream.<init>(FileInputStream.java:76)
            at android.app.ContextImpl.openFileInput(ContextImpl.java:386)
            at android.content.ContextWrapper.openFileInput(ContextWrapper.java:177)
            at com.alibaba.sdk.android.utils.crashdefend.f.a(CrashDefendUtils.java:89)
            at com.alibaba.sdk.android.utils.crashdefend.c.a(CrashDefendManager.java:65)
            at com.alibaba.sdk.android.utils.crashdefend.c.<init>(CrashDefendManager.java:58)
            at com.alibaba.sdk.android.utils.crashdefend.c.a(CrashDefendManager.java:28)
            at com.alibaba.sdk.android.utils.AlicloudTrackerManager.<init>(AlicloudTrackerManager.java:32)
            at com.alibaba.sdk.android.utils.AlicloudTrackerManager.getInstance(AlicloudTrackerManager.java:45)
            at com.alibaba.sdk.android.push.c.a.<init>(Unknown Source)
            at com.alibaba.sdk.android.push.c.a.a(Unknown Source)
            at com.alibaba.sdk.android.push.impl.j.a(Unknown Source)
            at com.alibaba.sdk.android.push.impl.j.register(Unknown Source)
            at com.xiaopeng.mycarinfo.application.CarApplication.initCloudChannel(CarApplication.java:168)
            at com.xiaopeng.mycarinfo.application.CarApplication.onCreate(CarApplication.java:127)
            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4853)
            at android.app.ActivityThread.access$1700(ActivityThread.java:166)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1475)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:148)
            at android.app.ActivityThread.main(ActivityThread.java:5628)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:737)
         Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
            at libcore.io.Posix.open(Native Method)
            at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
            at libcore.io.IoBridge.open(IoBridge.java:438)
            at java.io.FileInputStream.<init>(FileInputStream.java:76)?
            at android.app.ContextImpl.openFileInput(ContextImpl.java:386)?
            at android.content.ContextWrapper.openFileInput(ContextWrapper.java:177)?
            at com.alibaba.sdk.android.utils.crashdefend.f.a(CrashDefendUtils.java:89)?
            at com.alibaba.sdk.android.utils.crashdefend.c.a(CrashDefendManager.java:65)?
            at com.alibaba.sdk.android.utils.crashdefend.c.<init>(CrashDefendManager.java:58)?
            at com.alibaba.sdk.android.utils.crashdefend.c.a(CrashDefendManager.java:28)?
            at com.alibaba.sdk.android.utils.AlicloudTrackerManager.<init>(AlicloudTrackerManager.java:32)?
            at com.alibaba.sdk.android.utils.AlicloudTrackerManager.getInstance(AlicloudTrackerManager.java:45)?
            at com.alibaba.sdk.android.push.c.a.<init>(Unknown Source)?
            at com.alibaba.sdk.android.push.c.a.a(Unknown Source)?
            at com.alibaba.sdk.android.push.impl.j.a(Unknown Source)?
            at com.alibaba.sdk.android.push.impl.j.register(Unknown Source)?
            at com.xiaopeng.mycarinfo.application.CarApplication.initCloudChannel(CarApplication.java:168)?
            at com.xiaopeng.mycarinfo.application.CarApplication.onCreate(CarApplication.java:127)?
            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)?
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4853)?
            at android.app.ActivityThread.access$1700(ActivityThread.java:166)?
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1475)?
            at android.os.Handler.dispatchMessage(Handler.java:102)?
            at android.os.Looper.loop(Looper.java:148)?
            at android.app.ActivityThread.main(ActivityThread.java:5628)?
            at java.lang.reflect.Method.invoke(Native Method)?
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853)?
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:737)?

详细信息

  • 出现该异常的场景:第一次安装,且首次启动应用时会出现该日志,该日志不影响功能正常使用。
  • 出现该异常的原因:移动推送首次启动时,会检测本地是否有一个安全启动记录文件,如果没有该文件,就会显示这个错误。

适用于

  • 移动推送