You just have to go to your Module settings > Project
and specify a “Project compiler output” and make your modules inherit from project. (For that go to Modules > Paths > Inherit project
.
This did the trick for me.
Related Posts:
- Lombok and Maven
- Error: Could not find or load main class in intelliJ IDE
- Gradle does not find tools.jar
- unused import statement for used ones in IntelliJ IDEA
- Error: JavaFX runtime components are missing, and are required to run this application with JDK 11
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- Could not find method compile() for arguments Gradle
- How to fix “unsupported class file major version 60” in IntelliJ?
- intellij incorrectly saying no beans of type found for autowired repository
- Web server failed to start. Port 8080 was already in use. Spring Boot microserviceWeb server failed to start. Port 8080 was already in use. Spring Boot microservice
- Web server failed to start. Port 8080 was already in use. Spring Boot microservice
- JAVA_HOME should point to a JDK not a JRE
- IDEA: javac: source release 1.7 requires target release 1.7
- IntelliJ – Can’t start – “JAVA_HOME does not point to a valid JVM installation”
- Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
- Error: Module not specified (IntelliJ IDEA)
- Invalid signature file digest for Manifest main attributes exception while trying to run jar file
- Module … is not backed by gradle
- intellij idea – Error: java: invalid source release 1.9
- String index out of bounds exception java
- Class JavaLaunchHelper is implemented in two places
- IntelliJ IDEA “The selected directory is not a valid home for JDK”
- Problem with gif with transparent background
- Search for words with telephone numbers from 2-3-4 tree
- Java 8 Iterable.forEach() vs foreach loop
- How to round a number to n decimal places in Java
- Error unable to access jarfile C:\Jar
- In laymans terms, what does ‘static’ mean in Java? [duplicate]
- Creating a “logical exclusive or” operator in Java
- Cannot make a static reference to the non-static method fxn(int) from the type Two [duplicate]
- How can I use pointers in Java?
- JavaFX – Exception in Application start method?
- Is there a stopwatch in Java?
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- When is the @JsonProperty property used and what is it used for?
- Why is there no SortedList in Java?
- How to convert any Object to String?
- How do I copy an object in Java?
- Unfortunately MyApp has stopped. How can I solve this?
- What is the significance of load factor in HashMap?
- Which HTML Parser is the best?
- Returning Arrays in Java
- What is the /= operator in Java?
- Constructor cannot be applied to given types?
- Mocking static methods with Mockito
- Finding the max/min value in an array of primitives using Java
- How to for each the hashmap?
- Why do I get SQLCODE=-204, SQLSTATE=42704 with DB2 LUW and WebSphere App Server?
- java.net.UnknownHostException: Invalid hostname for server: local
- HashMap get/put complexity
- @Autowired – No qualifying bean of type found for dependency
- round up to 2 decimal places in java?
- com.sun.jdi.InvocationException occurred invoking method
- How can I check whether an array is null / empty?
- How to solve javax.net.ssl.SSLHandshakeException Error?
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘demoRestController’
- What causes java.lang.IncompatibleClassChangeError?
- Add an object to an Array of a custom class
- What does java.lang.Thread.interrupt() do?
- java string cannot be converted to boolean error
- Double decimal formatting in Java
- How to create a directory in Java?
- Converting from Integer, to BigInteger
- Error:java: javacTask: source release 8 requires target release 1.8
- Get a resource using getResource()
- Java comparing generic types
- Simplest way to read JSON from a URL in Java
- Display Animated GIF
- Why is my method undefined for the type object?
- Java can’t find file when running through Eclipse
- How do I draw a triangle?
- Java path..Error of jvm.cfg
- How to fix the compiler error in this program?
- How to open a new tab using Selenium WebDriver in Java?
- Selenium Webdriver: Element Not Visible Exception
- Whitespace Matching Regex – Java
- Unreachable code in eclipse
- “Field can be converted to a local variable” message appearing when setting Android ActionBar colour
- Convert an integer to an array of digits
- Google firebase check if child exists
- How can I initialize a LinkedList with entries/values in it?
- How to resolve Unable to load authentication plugin ‘caching_sha2_password’ issue
- Deleting an object in java?
- Recompile with -Xlint:deprecation for details
- Can we execute a java program without a main() method? [duplicate]
- How to really read text file from classpath in Java
- Java command not found on Linux
- Selenium using Java – The path to the driver executable must be set by the webdriver.gecko.driver system property
- How to break out or exit a method in Java?
- Java Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
- Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JDBC_DBO]]
- System.out.println function syntax in C++
- What is an attribute in Java?
- MessageBodyWriter not found for media type=application/json
- Conversion from Long to Double in Java
- Failed to find Java VM
- Java regex email
- Java Iterator on Doubly-linked-list
- Why “no projects found to import”?
- Java Swing setting JPanel Size