Android /华为:. io .FileNotFoundException:/ / cust / xml / hw_launcher_load_icon数据。xml: open failed: ENOENT(没有这样的文件或目录)

时间:2021-04-28 08:35:32

I programmed a simple App an I alway get the Logcat message (system.err):

我编写了一个简单的应用程序,并一直获得Logcat消息(system.err):

    java.io.FileNotFoundException: /data/cust/xml/hw_launcher_load_icon.xml: open failed: ENOENT (No such file or directory)

I do not try to open the file. I do not have the problem on Nexus 4, only on the Huawei P6 (4.2.2). This is very annoying, because I can't see something in the LogCat-box, beause of this message.

我不尝试打开文件。我没有Nexus 4的问题,只有华为P6(4.2.2)。这很烦人,因为由于这条消息,我在日志框中看不到任何东西。

I tried to see more with DDMS, but no success.

我试着用DDMS看更多,但没有成功。

Thanks

谢谢

1 个解决方案

#1


4  

It's a bit late, but may be it helps other people who may still stumble across this:

虽然有点晚了,但也许它能帮助那些还在犹豫的人:

This error is not an actual error of the app itself, it's a follow-up error of an uncaught exception within the app that actually crashed the app. Run the app again on a different device and/or emulator, reproduce the same steps that lead to this "FileNotFoundException", and you will actually see the real exception that was hidden on the Huawei. I don't know what Huawei is doing there, but it's definitely not helping developers writing and testing software.

这个错误不是一个实际的应用程序本身的错误,这是一个未捕获的异常的跟踪误差在app应用坠毁。再次运行应用程序在不同的设备和/或模拟器,复制相同的步骤导致这个“FileNotFoundException”,你会看到真正的例外,是隐藏在华为。我不知道华为在做什么,但它肯定不会帮助开发人员编写和测试软件。

#1


4  

It's a bit late, but may be it helps other people who may still stumble across this:

虽然有点晚了,但也许它能帮助那些还在犹豫的人:

This error is not an actual error of the app itself, it's a follow-up error of an uncaught exception within the app that actually crashed the app. Run the app again on a different device and/or emulator, reproduce the same steps that lead to this "FileNotFoundException", and you will actually see the real exception that was hidden on the Huawei. I don't know what Huawei is doing there, but it's definitely not helping developers writing and testing software.

这个错误不是一个实际的应用程序本身的错误,这是一个未捕获的异常的跟踪误差在app应用坠毁。再次运行应用程序在不同的设备和/或模拟器,复制相同的步骤导致这个“FileNotFoundException”,你会看到真正的例外,是隐藏在华为。我不知道华为在做什么,但它肯定不会帮助开发人员编写和测试软件。