IntelliJ - 오류:java: 릴리스 버전 5가 지원되지 않음
2180 단어 troubleshootingintellijjava
Error:java: release version 5 not supported
입니다.이를 해결하기 위한 3가지 기술을 소개합니다. 순서대로 시도하십시오. 문제가 해결되지 않으면 다음을 시도하십시오.
1. 자바 컴파일러 업데이트
대상 바이트 코드 버전에서 값을 삭제한 다음 확인을 클릭합니다.

메이븐 새로 고침

2. SDK 버전 업데이트
메이븐 새로 고침

3. pom.xml에 속성 추가
<dependencies>
앞에 추가하십시오(파일에 이미 <properties>
섹션이 있는 경우 아래에 있는 <maven.compiler...>
줄을 기존 섹션에 추가하십시오): <properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
x
의 1.8
를 Java 버전으로 변경합니다. 예를 들어 Java 13을 사용하는 경우 1.8을 1.13으로 변경합니다
Reference
이 문제에 관하여(IntelliJ - 오류:java: 릴리스 버전 5가 지원되지 않음), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/techgirl1908/intellij-error-java-release-version-5-not-supported-376텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)