I am coding something in Java using IntelliJ Idea and Gradle, trying to use version 3.0.
However, in the build tab, when I open my project, I get this:
Unable to find method 'org.gradle.api.invocation.Gradle.getIncludedBuilds()Ljava/util/Collection;' org.gradle.api.invocation.Gradle.getIncludedBuilds()Ljava/util/Collection; Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project. In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
I have tried the ‘redownload dependencies and sync project’ thing and the ‘stop gradle build processes’ thing. I also tried deleting the dists so they would redownload, and manually installing it using the command
./gradlew wrapper --gradle-version 3.1 but those didn’t work either. Can someone advise me on what to do next please.