开发者社区> 问答> 正文

移动推送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. (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. (CrashDefendManager.java:58) at com.alibaba.sdk.android.utils.crashdefend.c.a(CrashDefendManager.java:28) at com.alibaba.sdk.android.utils.AlicloudTrackerManager. (AlicloudTrackerManager.java:32) at com.alibaba.sdk.android.utils.AlicloudTrackerManager.getInstance(AlicloudTrackerManager.java:45) at com.alibaba.sdk.android.push.c.a. (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. (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. (CrashDefendManager.java:58)? at com.alibaba.sdk.android.utils.crashdefend.c.a(CrashDefendManager.java:28)? at com.alibaba.sdk.android.utils.AlicloudTrackerManager. (AlicloudTrackerManager.java:32)? at com.alibaba.sdk.android.utils.AlicloudTrackerManager.getInstance(AlicloudTrackerManager.java:45)? at com.alibaba.sdk.android.push.c.a. (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)?

展开
收起
保持可爱mmm 2020-03-27 23:16:02 2104 0
1 条回答
写回答
取消 提交回答
  • 出现该异常的场景:第一次安装,应用第一次启动时会有这个日志,不影响功能正常使用。 出现该异常的原因:移动推送首启动时会检测本地是否有一个安全启动记录文件,如果没有该文件,就显示这个错误。

    2020-03-27 23:20:48
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
跨平台的云服务SDK需要什么 立即下载
Android内存泄漏自动化链路分析组件Probe 立即下载
一个跨平台的云服务SDK需要什么 立即下载