Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing cache file errors?

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.

like image 306
user3746428 Avatar asked Jan 15 '16 17:01

user3746428


1 Answers

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.

like image 115
Rupesh Avatar answered Oct 25 '22 02:10

Rupesh