You need to specify the source dir
File> Project Structure > Modules
click the directory and click the Sources button
It’s weird because usually it’s done automatically. Maybe it’s better if you recreate the project again.
More Related Contents:
- How do I change the IntelliJ IDEA default JDK?
- How to set -source 1.7 in Android Studio and Gradle
- Maven Compilation Error: (use -source 7 or higher to enable diamond operator)
- Error: JavaFX runtime components are missing, and are required to run this application with JDK 11 [duplicate]
- Invalid signature file digest for Manifest main attributes exception while trying to run jar file
- Enable Partial Compilation in IntelliJ IDEA
- Android Studio cannot resolve symbol but code executes correctly
- Maven plugins can not be found in IntelliJ
- Why does IntelliJ give me “Package doesn’t exist” error?
- How to debug a multi-threaded app in IntelliJ?
- Error:java: javacTask: source release 8 requires target release 1.8
- stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)
- Add a properties file to IntelliJ’s classpath
- Remove source file comments using IntelliJ?
- Lombok added but getters and setters not recognized in Intellij IDEA
- IntelliJ Compilation Error zip END header not found
- deploy/debug java code on a remote server using Intellij
- getting compile error for diamond operator in idea ide
- IntelliJ – Convert a Java project/module into a Maven project/module
- How to clean project cache in IntelliJ IDEA like Eclipse’s clean?
- IntelliJ: Never use wildcard imports
- intellij incorrectly saying no beans of type found for autowired repository
- How to use IntelliJ IDEA to find all unused code?
- How to set IntelliJ IDEA Project SDK
- BUG! exception in phase ‘semantic analysis’
- IntelliJ gradle add module dependency
- How to force IntelliJ to download javadocs with Maven?
- How configure Intellij Idea javadoc templates?
- IntelliJ IDEA: Run java with args from external file
- IntelliJ GUI Designer Maven Executable JAR Export