Hey guys, I've been using kts scratches file for a...
# intellij
b
Hey guys, I've been using kts scratches file for a while in Intellij CE and Android Studio and everything used to work perfectly. However since I had to delete my
~/.gradle/caches
, scripts don't work anymore if I try to run them from the IDE I get this :
Copy code
Primary constructor not found for script template class ScriptTemplateWithArgs
Any idea how to fix that ?
s
I think someone’s probably gonna tell you to take it to #scripting but my recommendation would be to try to rebuild the project and see if it fixes itself
sometimes that works for me, but sometimes it doesn’t 😞
d
You may delete ~/.gradle
After every gradle launch it will create again, with no cache files