I’m new to Gradle and I’ve generated a Gradle application project using the
gradle init. It’s working fine when I run
gradle run, however, VSCode shows the error
The declared package “console.menu” does not match the expected package “app.src.main.java.console.menu”
I know it has something to do with classpath, but I don’t know how to fix it. Is this a VSCode problem? Or there is something I can do with Gradle to get rid of this error as well? E.g., maybe there’s a configuration I can put in
build.gradle to help VSCode realize the source structure of this project? By the way, this is an “application” project.