[英]trying to get rid of a persistent log warning debugging on Huawei Ascend P6
I used to test my app on SGS 2 I9100 (4.1.2), after the device became defect I purchased a Huawei Ascend P6 (4.2). 我曾经在SGS 2 I9100(4.1.2)上测试我的应用程序,但在设备出现故障之后,我购买了Huawei Ascend P6(4.2)。 I have to always connect it in HiSuite mode which launches their annoying sync software on PC, USB debugging won't work otherwise.
我必须始终以HiSuite模式连接它,这会在PC上启动其烦人的同步软件,否则USB调试将无法进行。 Ok, I got used to it but anytime I run my app I see this log (marked as WARN) and tagged with my app (the app still runs without any issues):
好的,我已经习惯了,但是每当我运行我的应用程序时,我都会看到此日志(标记为WARN)并用我的应用程序标记(该应用程序仍然可以正常运行,没有任何问题):
02-08 13:30:34.532: W/System.err(5815): java.io.FileNotFoundException: /data/cust/xml/hw_launcher_load_icon.xml: open failed: ENOENT (No such file or directory)
02-08 13:30:34.532: W/System.err(5815): at libcore.io.IoBridge.open(IoBridge.java:409)
02-08 13:30:34.532: W/System.err(5815): at java.io.FileInputStream.<init>(FileInputStream.java:109)
02-08 13:30:34.532: W/System.err(5815): at android.content.res.ResourcesEx.readDefaultConfig(ResourcesEx.java:808)
02-08 13:30:34.532: W/System.err(5815): at android.content.res.ResourcesEx.<init>(ResourcesEx.java:741)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1721)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1752)
02-08 13:30:34.532: W/System.err(5815): at android.app.LoadedApk.getResources(LoadedApk.java:485)
02-08 13:30:34.532: W/System.err(5815): at android.app.ContextImpl.init(ContextImpl.java:1911)
02-08 13:30:34.532: W/System.err(5815): at android.app.ContextImpl.init(ContextImpl.java:1904)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4269)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.access$1300(ActivityThread.java:145)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306)
02-08 13:30:34.532: W/System.err(5815): at android.os.Handler.dispatchMessage(Handler.java:99)
02-08 13:30:34.532: W/System.err(5815): at android.os.Looper.loop(Looper.java:137)
02-08 13:30:34.532: W/System.err(5815): at android.app.ActivityThread.main(ActivityThread.java:5095)
02-08 13:30:34.532: W/System.err(5815): at java.lang.reflect.Method.invokeNative(Native Method)
02-08 13:30:34.532: W/System.err(5815): at java.lang.reflect.Method.invoke(Method.java:511)
02-08 13:30:34.532: W/System.err(5815): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
02-08 13:30:34.532: W/System.err(5815): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
02-08 13:30:34.532: W/System.err(5815): at dalvik.system.NativeStart.main(Native Method)
02-08 13:30:34.532: W/System.err(5815): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
02-08 13:30:34.536: W/System.err(5815): at libcore.io.Posix.open(Native Method)
02-08 13:30:34.536: W/System.err(5815): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
02-08 13:30:34.536: W/System.err(5815): at libcore.io.IoBridge.open(IoBridge.java:400)
02-08 13:30:34.536: W/System.err(5815): ... 19 more
02-08 13:30:35.053: W/System.err(5815): Invalid int: ""
The problem is that this warning in the ONLY thing I see in LogCat, it somehow blocks all other messages even if a real exception occurs. 问题是该警告仅出现在LogCat中,即使真正发生异常,它也会以某种方式阻止所有其他消息。 To be exact: yes, I see only the message posted above and nothing else every time I run the app.
确切地说:是的,每次运行该应用程序时,我只会看到上面发布的消息,而没有看到其他消息。 As far as I understood, the system tries to get some resource which isn't even part of my project.
据我了解,系统试图获取一些资源,这甚至不是我的项目的一部分。 But I have no clue why any other LogCat output does not appear.
但是我不知道为什么没有其他LogCat输出。 Anyone any idea what that is and how to fix it?
任何人都知道这是什么以及如何解决它?
作为使用Huawei Ascend P6进行开发的人员,仅当我在定义活动(或整个应用程序)时在android
命名空间中包含主题的主题时,才会发生此错误,让我认为主题支持已中断华为的Android 4.2.2。
See my answer on the SO question below, which is basically the same question as this one (I just cannot mark this here one as duplicate): 请参阅以下关于SO问题的答案,该问题与该问题基本上是相同的问题(我不能在此处将其标记为重复):
Android / Huawei: java.io.FileNotFoundException: /data/cust/xml/hw_launcher_load_icon.xml: open failed: ENOENT (No such file or directory) Android /华为:java.io.FileNotFoundException:/data/cust/xml/hw_launcher_load_icon.xml:打开失败:ENOENT(没有这样的文件或目录)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.