Google play reports an exception on some devices (all are "other" and one "LG-E400", so it might be some custom android build)

Exception is:

```
java.lang.IllegalArgumentException
at android.os.StatFs.native_setup(Native Method)
at android.os.StatFs.<init>(StatFs.java:32)
at android.webkit.CacheManager.init(CacheManager.java:199)
at android.webkit.BrowserFrame.<init>(BrowserFrame.java:210)
at android.webkit.WebViewCore.initialize(WebViewCore.java:201)
at android.webkit.WebViewCore.access$500(WebViewCore.java:54)
at android.webkit.WebViewCore$WebCoreThread$1.handleMessage(WebViewCore.java:631)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:653)
at java.lang.Thread.run(Thread.java:1019)

```

The problem is I can't ignore this axception 'cause it is in separate thread.
Is there any solution for this problem?
 Or what can I do with that?
['https://Stackoverflow.com/questions/14796931', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1148784/']
Path which you are providing in Statfs constructor does not exists

```
  String path = "path to some directory";
StatFs statFs = null;
statFs = new StatFs(path);

```

and you must have external storage permission in manifest file
Starting with Lollipop, Android placed rather extreme restrictions on accessing external SD cards. You can use:

```
    StatFs stat;
    try {
        stat = new StatFs(path);
    } catch (IllegalArgumentException e) {
        // Handle the failure gracefully or just throw(e)
    }

```

to work-around the error.

For my application, I just skip unavailable directories, essentially limiting the user to the internal storage. Not an ideal solution, but a limited application that doesn't crash is better than one which does.