The System cannont find the file specified Android

2019-03-01 09:21发布

Whenever I try to run android application, I receive an error message.

Error:C:\Users\zeshan\.gradle\caches\2.14.1\scripts-remapped\build_6xj57zedh3l90p9pnawvv74i8\8ehwj2mcm8zvm71zyxubaaene\cp_proj57408229\cache.properties (The system cannot find the file specified)

2条回答
对你真心纯属浪费
2楼-- · 2019-03-01 09:25

I have the same problem. Just remove .gradle folder, reopen project and rebuild. It helped me.

查看更多
甜甜的少女心
3楼-- · 2019-03-01 09:40
  1. Navigate to C:\Users\user_name.gradle\caches\2.14.1 or (2.8 if error in it otherwise)

  2. Copy the folder "2.14.1" 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.

查看更多
登录 后发表回答