Cache.properties (The system cannot find the file specified)

前端 未结 16 1560
渐次进展
渐次进展 2020-12-01 09:01

I just started using Android Studio 1.3 sdk 24 and it has worked fine until today. I get this error message about cache.properties and I delete that cache file but now I am

相关标签:
16条回答
  • 2020-12-01 09:29

    As mentioned above,I faced same problem: Try this

    1. Remove scripts and scripts-remmaped folders in C:\Users\user.gradle\caches\2.14.1\
    2. restart android studio

    THIS WORKED FOR ME.

    0 讨论(0)
  • 2020-12-01 09:30

    No need to reinstall anything.

    Just delete the 2.4 and 2.8 folder located at C:\Users\user\.gradle\cachesdirectory and reopen android studio. It will generate new cash files so now the build should be successful.

    0 讨论(0)
  • 2020-12-01 09:30

    I have faced the same problem and i am using Android studio 3.0.1,

    Well, Don't Reinstall the Android studio there is no need of reinstalling the Whole software

    Do the following step and hope this will solve your problem.....

    step - 1. Go to C:\Users\*user_name_of_your_system*\.gradle\caches\2.x/

    step - 2. Delete this folder scripts and scripts-remapped

    step - 3. Than in your android studio, Go to Tools/Android/Sync Project with Gradle Files

    Done :)

    if still problem is not solved than -

    step - 4. Delete both the Build folder and than repeat step- 3

    0 讨论(0)
  • 2020-12-01 09:33

    Deleting the "scripts" folder and rebuilding the project will solve this problem.

    0 讨论(0)
  • 2020-12-01 09:35

    You don't have to delete all .gradle folders and no need to reinstall Android Studio.

    I have the latest version of Android Studio and I faced that problem, the only thing that worked for me is to:

    1. Navigate to C:\Users\user\.gradle\caches\2.x\

    2. Copy the folder scripts , scripts-remapped and paste it somewhere safe just in case anything went wrong you will place it back

    3. Delete this folder scripts and scripts-remapped from the directory C:\Users\user\.gradle\caches\2.x\

    4. Sync Project with Gradle Files and you are done.

    When you sync your project Android Studio will generate new cache files.

    You also need to delete buildOutputCleanup.lock from projectLocation/.gradle/buildOutputCleanup in case the above 4 steps do not work out.

    It worked for me I hope it will work for you.

    0 讨论(0)
  • 2020-12-01 09:37

    Easy solution. Go ahead and create an empty cache.properties file under the path specified in the error log. The error should then disappear.

    0 讨论(0)
提交回复
热议问题