Cache.properties, file not found

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

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

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

    
asked by anonymous 15.06.2016 / 19:09

3 answers

2

Hello, follow these steps to resolve your issue:

  • Go to the directory C: \ Users \ Didi & Lulu \ .gradle \ caches \ 2.10

  • Copy the scripts folder and save somewhere if needed     her back later;

  • Delete the scripts folder in this directory, while retaining your copy     saved somewhere as backup;

  • Then synchronize 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 the     Build / Rebuild project menu;

  • Hugs.

        
    15.06.2016 / 20:50
    0

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

        
    23.10.2017 / 21:33
    0

    I managed to solve the problem like this: I copied the 'cache.properties' file from any other folder, pasted it into the folder that indicated the error, went to file, then sync project with gradle files and then rebuild and done it. >     

    07.01.2019 / 14:53