ErrnoException:statvfs失败:ENOENT(没有这样的文件或目录)

时间:2016-05-05 21:54:39

标签: android android-external-storage

在我的应用中,我使用StatFs课程获取有关设备存储空间(总空间和可用空间)的信息。

以这种方式初始化:

StatFs stat = new StatFs(Environment.getExternalStorageDirectory().getAbsolutePath());

此应用有一个错误报告工具,可报告上一段代码中的以下错误:

  

android.system.ErrnoException

     

Posix.statvfs()

中的Posix.java第-2行      

statvfs失败:ENOENT(没有这样的文件或目录)

我发现有关此错误的信息很少,例如herehere

关于ErrnoException的文档说:Os方法失败时抛出一个已检查的异常。

有人遇到过这个问题吗?

0 个答案:

没有答案