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 trial

Java

New Gradle Project in IntelliJ Build Failure

Sorry, but I am new to Java and Gradle. I just downloaded IntelliJ and tried to start a new Gradle project with Java. Before even doing anything I am getting the below error. Has anyone ran into this or know of a solutions?

  • I am running on Windows 10.
  • Use Gradle from: 'wrapper task in Gradle bulild script'. Note, 'gradle-wrapper.properties file can't be found -Gradle JVM: openjdk-14 javaversion "14.0.1"
  • IntelliJ version 2020.1.2

FAILURE: Build failed with an exception.

  • What went wrong: Could not open cp_init remapped class cache for 6zaulip3vi6u9qom43pedepo1 (C:\Users\chadb.gradle\caches\6.1.1\scripts-remapped\wrapper_init2_angc4xrjrt4gd0c7qo8z8zwvi\6zaulip3vi6u9qom43pedepo1\cp_init3607aee355f62839c5e6f549478ccc87).

    Could not open cp_init generic class cache for initialization script 'C:\Users\chadb\AppData\Local\Temp\wrapper_init2.gradle' (C:\Users\chadb.gradle\caches\6.1.1\scripts\6zaulip3vi6u9qom43pedepo1\cp_init\cp_init3607aee355f62839c5e6f549478ccc87). Could not initialize class org.codehaus.groovy.classgen.Verifier

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 86ms