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

前端 未结 16 1559
渐次进展
渐次进展 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:19

    The quickest and more accurate approach to this problem is to remove from your project's .gradle/<version>/buildOutputCleanup folder the file cache.properties.lock This will do the trick. After that, just rebuild or sync your project.

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

    Go to the folder indicated in the error message. Delete the cache.properties.lock file.

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

    I download gradle and changed path of gradle from C drive to D drive and fixed it

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

    Reinstall Android Studio again is not an option!

    To fix the problem:

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

    go to :

     C:\Users\[User]\.gradle\caches\
    

    Delete folders \2.4 and \2.8

    Restart Android Studio!.

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

    You don't have to reinstall Android Studio or no need to delete all .gradle folder.

    I am reinstalled the latest version of Android Studio and still I faced that problem. It caused my to rename the "Android Projects" folder on my desktop in my case.

    The only thing that you have to do:

    1-Navigate to C:\Users\user_name.gradle\caches\2.4 or (2.8 if error in it otherwise)

    2-Copy the folder "2.4" or "2.8" and paste it somewhere safe just in case anything went wrong you will place it back

    3-Delete this error folder from the directory C:\Users\user.gradle\caches\2.4\ (or \2.8)

    4-Close the Android studio & restart it.

    During restart it sync your project & Android Studio will generate new cache files.

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

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

    I found the solution to my question, but I do not know whether it is the optimal solution:

    I deleted all .gradle folders in user library and reinstalled android and then it worked.

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