移动推送首次启动,打印了如下日志:
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)?
出现该异常的场景:第一次安装,应用第一次启动时会有这个日志,不影响功能正常使用。 出现该异常的原因:移动推送首启动时会检测本地是否有一个安全启动记录文件,如果没有该文件,就显示这个错误。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。