libcore.io.ErrnoException: open failed: EINVAL (Invalid argument)


出现异常:

04-16 17:58:52.714: W/System.err(23703): Caused by: libcore.io.ErrnoException: open failed: EINVAL (Invalid argument)

04-16 17:58:52.714: W/System.err(23703): at libcore.io.Posix.open(Native Method)
04-16 17:58:52.714: W/System.err(23703): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
04-16 17:58:52.714: W/System.err(23703): at libcore.io.IoBridge.open(IoBridge.java:444)

04-16 17:58:52.714: W/System.err(23703): ... 6 more


解决方法:

android中,创建文件时,文件名中不能包含“:”冒号。

你可能感兴趣的:(异常)