Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android crash : /data/user/0/[my app]/cache/WebView is not a directory

Hi I'm in a bit of bind here. My app doesn't use webview anywhere, and my most frequent crash in Crashlytics is this error : /data/user/0/[myApp]/cache/WebView is not a directory.

The stack trace is minified despite me not using Proguard to minify/obfuscate so it's probably a lib I'm using.

Caused by java.lang.IllegalArgumentException: /data/user/0/[myApp]/cache/WebView is not a directory.
       at bHS.<init>(SourceFile:58)
       at akR.a(SourceFile:7)
       at aoN.call(SourceFile:7)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at aoR.run(SourceFile:2)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
       at java.lang.Thread.run(Thread.java:761)

I'm thinking adMob since it's the only thing that could use a webView or maybe crashlytics itself ?

Has anyone encounter this problem or any lead on how to fix it ? I tried creating this folder on app startup but it's deleted.

like image 921
Jean-Philippe Gire Avatar asked Oct 31 '25 00:10

Jean-Philippe Gire


1 Answers

In my case it was that i did not add permissions for internet usage in the manifest:

<uses-permission android:name="android.permission.INTERNET" />
like image 187
Paulo Neves Avatar answered Nov 01 '25 16:11

Paulo Neves



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!