Trouble setting up gradle

Hi, I’m following the instructions from google to build a Java application that can read/write to Google Sheets. when I run
gradle -q run
I get this:

Error: Could not find or load main class Quickstart

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:run’.
    > Process ‘command ‘C:\Program Files\Java\jdk1.8.0_162\bin\java.exe’’ finished with non-zero exit value 1

more detailed info here

What did I do wrong?

Are you sure you followed Step 3 (Create a file named src/main/java/Quickstart.java) exactly as written? The mainClassName in Step 2 must match the name of the class exactly, so if you created a src/main/java/QuickStart.java or anything that doesn’t match exactly, the main class will not be found.

yea the file is Quickstart and mainClassName is Quickstart, and in the correct packages

I have the same problem and had it previously working yesterday. When I tried it today I had the same error + permission errors.