Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

could not open initscript class cache for initialization script

enter image description here

Error:Could not open initscript class cache for initialization script 'C:\Users\Avishek\AppData\Local\Temp\asLocalRepo14.gradle' (C:\Users\Avishek.gradle\caches\2.2.1\scripts\asLocalRepo14_dkwbdtenxxgt2q2wfe57wj30b\InitScript\initscript). java.io.FileNotFoundException: C:\Users\Avishek.gradle\caches\2.2.1\scripts\asLocalRepo14_dkwbdtenxxgt2q2wfe57wj30b\InitScript\initscript\cache.properties (The system cannot find the file specified)

This error gives when I want to rebuild a project or clean project or run project.

Please someone help me...Thank you...

like image 972
Avishek Das Avatar asked Aug 29 '15 10:08

Avishek Das


Video Answer


1 Answers

Don't use Gradle with a fresh version of JDK. It may not support it. In my case, downgrading JDK solved the issue.

like image 153
Jan Bodnar Avatar answered Sep 25 '22 03:09

Jan Bodnar