nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper #535

Closed Shivlock221b closed 3 years ago

Shivlock221b commented 3 years ago

When running the "./gradlew" command on the mac I get this error. Followed the guide scenario 2 and merged the add-gradle-support branch with new branch.

Screenshot 2021-09-03 at 12 49 20 AM

This is my build.gradle file

Screenshot 2021-09-03 at 12 49 51 AM
damithc commented 3 years ago

@Shivlock221b Can you post this part of your settings? image

Shivlock221b commented 3 years ago

Prof, it doesn't show me the build tools. There is no extension in Build tools. Just shows me external or internal

Screenshot 2021-09-03 at 11 57 11 AM
damithc commented 3 years ago

Prof, it doesn't show me the build tools. There is no extension in Build tools. Just shows me external or internal

Hmm... might be different in Mac. Which version of Intellij are you using? The latest? Is the gradle plugin enabled?

Shivlock221b commented 3 years ago
Screenshot 2021-09-03 at 3 06 03 PM

My mistake Prof, now the gradle bar is visible after enabling the gradle plugin but it still gives the same error!!

damithc commented 3 years ago

Try these:

Shivlock221b commented 3 years ago

It worked thanks for the help Prof. Should I close the issue?

damithc commented 3 years ago

It worked thanks for the help Prof. Should I close the issue?

Glad to hear that @Shivlock221b Yes, go ahead and close.