Cache.properties, file not found

Asked

Viewed 852 times

2

Hello, I installed Android Studio on my notebook (OS: Windows 10) and when I managed my basic application "Hello World" I tried to run on my mobile and appeared the following error:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: C:\Users\Didi&Lulu\.gradle\caches\2.10\classAnalysis\cache.properties (O sistema não pode encontrar o arquivo especificado)

I found a closed question HERE, however, did not resolve what he suggested.

  • Try to create the file cache.properties in this directory, without any content, here in mine it exists, along with others.

  • Thanks for the help!

3 answers

2

Hello, follow these steps to resolve your problem:

  1. Go to the directory C: Users Didi&lulu . Gradle caches 2.10

  2. Copy the folder scripts and save somewhere in case you need of her back after;

  3. Delete the folder scripts from that directory, keeping your copy saved somewhere as backup;

  4. Then Incronize your project again, on the Sync button, which appears in the yellow bar at the top of the classes or in the IDE itself in Build / Rebuild project menu;

Hugs.

  • Hello friend, I already tried this alternative. However, it did not solve the problem. Still, thanks for the help.

0

I was able to solve the problem like this: I copied the file 'cache.properties' from any other folder, pasted it in the folder that indicated the error, went to file, then Sync project with Gradle files and then rebuild and ready.

0

I came across this problem while doing my CBT. I was able to solve the problem like this: I copied the file 'cache.properties' from any other folder, pasted it in the folder that indicated the error, did the rebuild and that was it. I managed to deliver my TCC without errors

Browser other questions tagged

You are not signed in. Login or sign up in order to post.