机器人工作室gradle这个刷新失败(该系统找不到指定的文件) [英] android studio gradle refresh failed (The system cannot find the file specified)
问题描述
错误:无法打开启动脚本类缓存初始化脚本
C:\\用户\\ Subash \\应用程序数据\\本地的\\ Temp \\ asLocalRepo2.gradle
(C:\\Users\\Subash.gradle\\caches\\2.2.1\\scripts\\asLocalRepo2_cd0g6mnzdabuvxgeqlhhrxv0q\\InitScript\\initscript).
java.io.FileNotFoundException:
C:\\Users\\Subash.gradle\\caches\\2.2.1\\scripts\\asLocalRepo2_cd0g6mnzdabuvxgeqlhhrxv0q\\InitScript\\initscript\\cache.properties
(系统找不到指定的文件)
块引用>解决方案我有最新版本的Android工作室和我面临这个问题,只为我工作的事情是:
1,导航到C:\\用户\\ user.gradle \\缓存\\ 2.4 \\
2,复制文件夹脚本,并将它粘贴到安全的地方,以防万一出了什么差错,你就会把它重新
3,删除目录C这个文件夹脚本:\\用户\\ user.gradle \\缓存\\ 2.4 \\
4-同步工程与摇篮文件和你做。
当您同步项目的Android Studio将产生新的现金文件。
这为我工作,我希望它会为你工作...
Error:Could not open initscript class cache for initialization script 'C:\Users\Subash\AppData\Local\Temp\asLocalRepo2.gradle' (C:\Users\Subash.gradle\caches\2.2.1\scripts\asLocalRepo2_cd0g6mnzdabuvxgeqlhhrxv0q\InitScript\initscript). java.io.FileNotFoundException: C:\Users\Subash.gradle\caches\2.2.1\scripts\asLocalRepo2_cd0g6mnzdabuvxgeqlhhrxv0q\InitScript\initscript\cache.properties (The system cannot find the file specified)
解决方案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.4\
2-Copy the folder "scripts" and paste it somewhere safe just in case anything went wrong you will place it back
3-Delete this folder "scripts" from the directory C:\Users\user.gradle\caches\2.4\
4- Sync Project with Gradle Files and you are done.
When you sync your project Android Studio will generate new cash files.
It worked for me I hope it will work for you...
这篇关于机器人工作室gradle这个刷新失败(该系统找不到指定的文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!