본문 바로가기
Android

[Android] apk 파일 생성 시 오류 Cause: com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0_해

by jjinthe 2024. 7. 31.
728x90

 

apk파일 생성 시

 

Cause: com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

 

원인: com/android/tools/idea/gradle/run/OutputBuildAction은 최신 버전의 Java Runtime(클래스 파일 버전 55.0)으로 컴파일되었습니다. 이 버전의 Java Runtime은 최대 52.0의 클래스 파일 버전만 인식합니다.

 

 

구글링 하니 역시나 stack overflow 에서 해답을 찾았다. 

문제는 java Runtime JRE에 있다고 한다. 

 

 

해결 방법 

상단의 file  탭 -> settings 로 이동
Build, Execution, Deployment -> Build Tools -> Gradle 로 이동

 

Gradle JDK -> Embedded JDK로 선택 후 ok 

 

아래 사이트 참고 

https://stackoverflow.com/questions/75607721/how-to-fix-android-studio-2022-1-1-build-error

 

728x90
반응형