Open a new Command Prompt window (it must be a new window to recognize the path changes). Type the following command and press Enter:gradle -v
Open the Start Menu, search for "Edit the system environment variables," and hit Enter. Click the Environment Variables button.
Java Errors: Ensure your JAVA_HOME variable is set and points to a compatible JDK version (8 through 19).