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

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

    I have the same problem, I just delete .gradle from C:\Users\user\.gradle\caches\2.4\ and from my application too.

    Of course close Android Studio and start Android Studio again.

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

    I don't know why a great developer as Google can't manage this issue by them selves it is very easy to delete the cached folder and regenerate it programmatically. Any way just navigate to C:\Users\user.gradle\caches\ and open the latest version folder, then delete the scripts folder. Go to android studio and sync project.

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

    Removing the {project-path}/.gradle/buildOutputCleanupcache.properties.lock

    Work for me..

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

    As said in the above examples i have tried resolving with extra steps:

    1. Navigate to the respective folder C:\Users\user.gradle\caches\2.14.1\
    2. Copy both the folders "scripts" and "scripts-remapped" into a safe place.
    3. Now, DELETE BOTH THE FOLDERS "scripts" and "scripts-remapped" in the location C:\Users\user.gradle\caches\2.14.1\
    4. Finally, try to sync the gradle.
    5. Android Studio will ask to Upgrade the Gradle plugin. So click on Upgrade the gradle.

    (If not try to Restart the Android Studio IDE completely.)

    Finally, it is done for me...!!!

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