When I test the class run, the following error occurs:
Possible cause: Java version inconsistencies The project builds the configuration using the wrong version of Java
Solution:
Step 1: File –Project Structure– Project (2 versions are changed to the same: the numbers in the second and third bars are 11)
File — –Project Structure– Modules (second bar changed from 9 to 11 as in Project)
Step 2: File– Setting– build, execution, deployment– Java Compiler (right-most, Target bytecode version 5)
Possible cause: Java version inconsistencies The project builds the configuration using the wrong version of Java
Solution:
Step 1: File –Project Structure– Project (2 versions are changed to the same: the numbers in the second and third bars are 11)
File — –Project Structure– Modules (second bar changed from 9 to 11 as in Project)
Step 2: File– Setting– build, execution, deployment– Java Compiler (right-most, Target bytecode version 5)
Read More:
- [Java] error: Java: error: release 13 is not supported
- Error: Java: error: release version 5 not supported solution to run error
- IntelliJ idea error: error: Java does not support release 5
- Java in idea: warning: source release 11 needs to be resolved by target release 11
- appear Error:java : javacTask: source release 1.7 requires target release 1.7
- Error: (44,73) lambda expression and XML are not supported in Java: – source 1.7 Error:java : Compilation failed
- javac Task Error source release 1.7 requires target release
- An error is reported when executing MVN. The diamond operator is not supported in source-1.5
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- Idea error: Java: compilation failed: internal java compiler error
- Plugin Error: Plugin “Android Code Generator“ is incompatible (supported only in IntelliJ IDEA)
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- The key “target densitydpi” is not supported
- Springcloud Feign Upload MultipartFile Error: Current req is not a multipart request Content type not supported
- IntelliJ idea error: Java: compilation failed: solution to internal java compiler error
- fatal: protocol ‘https‘ is not supported
- tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead.
- When feign is called, the solution of request method ‘post’ not supported appears
- ERROR: pygame-1.9.2-cp35-cp35m-win32.whl is not a supported wheel on this platform.
- The Excel connection manager is not supported in the 64-bit version of SSIS [Switch]