I have ran into a frustrating issue in my project that has resulted in errors appearing in the event log every ~30 seconds. Here is the type of thing I'm seeing -
FileNotFoundException: /Users/User/Library/Caches/AndroidStudio1.5/caches/names.dat.keystream.len (No such file or directory)
FileNotFoundException: /Users/User/Library/Caches/AndroidStudio1.5/index/filenameindex/FilenameIndex_inputs_i.len (No such file or directory)
FileNotFoundException: /Users/User/Library/Caches/AndroidStudio1.5/index/stubs/java.class.fqn/java.class.fqn_i.len (No such file or directory)
FileNotFoundException: /Users/User/Library/Caches/AndroidStudio1.5/caches/contentHashes.dat.keystream.len (No such file or directory)
I've tried to rebuild the project as suggested in other similar questions, however that made no difference.
I'm not sure if this could possibly be the cause of the issue, but as I was running very low on space I used an app called 'Disk Diag' to clear up some free space, and the issue seemed to occur not long after that, so I'm not sure if it's deleted some files.
Anyone have any suggestions?
EDIT:
I've just checked to see if the files actually exist, and some do, and others don't.
For example, /Users/User/Library/Caches/AndroidStudio1.5/index/filenameindex/FilenameIndex_inputs_i.len
does exist, however the entire /Users/User/Library/Caches/AndroidStudio1.5/caches/
directory is missing.
Just invalidate cache and restart android studio.
On mac's File -> Inavlidate caches/restart (select this option)
You can build your app or create apks using gradle after this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With