Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLouis Baerentzen
2,892 PointsCant get Gradle to run on IntelliJ v2020.1.1 (30Apr 2020 Release)
Setting this up is proving to be tricky compared to the video,.
Creating a file doesn't allow you to see what Gradle wrapper you have & whether it is default. On 2020.1.1 this is done after you've created the file.
Secondly after importing the file and letting it run it cannot find this class after I have been able to access the settings such as the JVM Gradle will use:
`
Could not initialize class org.codehaus.groovy.classgen.Verifier `
Everytime I run this in IntelliJ it cant find the default wrapper properties for Gradle stating:
'gradle-wrapper.properties' not found
This is the first time I have used Gradle and I'm not really sure what I can do to fix this.
Any feedback or insight to fix these errors are much appreciated.
4 Answers
Gabriel Murut
5,418 PointsHi Louis,
You need to have the latest version of Gradle, otherwise it is not working on Intellij v2020.1.1
Download last version here: (https://gradle.org/releases/) and install it.
Then you go to IntelliJ:
On File >> Settings >> Build, Execution , Deployment >> Gradle
Change USE GRADLE FROM to Specified location (Here you select your new Gradle installation path)
That should get everything working.
Let me know.
Cheers!
Louis Baerentzen
2,892 PointsHello Gabriel,
The path you've shown me to get to this is not a path i can see on my end. I have downloaded the latest version of Gradle but cant use the path you've shown me in this way.
The closest thing i can see is settings.gradle is this what you mean? This is also a file in the project I am currently on.
Louis Baerentzen
2,892 PointsI have been able to download the latest version as of yesterday. (6.4) it is still telling however
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
This is not a current release, Im not really sure what to do from here.
Also:
adding StringApplication to my app configuration file is also not working as a result but has done before. I have all the dependencies picked up from Gradle, but it cant find it.
Gabriel Murut
5,418 PointsYes that's it, settings.gradle.
At the bottom right you should see 2 options:
USE GRADLE FROM GRADLE JVM
In first option you should see 3 more options
- 'gradle.wrapper.properties' file
- 'wrapper' task in gradle built script
- Specified location
Select Specified location and paste your gradle installation path in the textbox
That should do it.
Louis Baerentzen
2,892 PointsIt has done it thank you very much for helping. Ive got 6.4 in the install path now and can run my setup too!
Many thanks again for pointing me through this Gabriel.
Kind Regards Louis
Gabriel Murut
5,418 PointsYou're welcome!
alastair cooper
30,617 PointsI had the same problem but solved it as follows.
File --> Settings go to the plugins tab and select Gradle. Restart Intellij and you are good to go (Delete the giflib directory you have already created before you restart Intelli if you want to use the same name)
Louis Baerentzen
2,892 PointsLouis Baerentzen
2,892 Pointshttps://github.com/gradle/gradle/issues/10248
If this can give any context to whats happening then please follow the link above. This again is the error I come up against.
Could not initialize class org.codehaus.groovy.classgen.Verifier