본문 바로가기
App Dev/Android

[Android] jks 빌드시(Invalid keystore format) 오류해결하기

by hyen_ 2023. 1. 29.
300x250

 

 android studio 환경에서 run혹은 build하면 자꾸 JAVA11 오류가 발생합니다.

jks 키스토어를 만들고 abb 빌드할때도 똑같은 현상이 나타나서 이를 정리해봅니다.

 

오류내용 1,2 모두 공통된 해결방법입니다. 이 둘중 해당되시나면 하단의 해결방법을 참고해주세요.

 

 

 

 

<오류내용> -1

Android Gradle plugin requires Java 11 to run. you are currently using java 1.8. You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing 'org.gradle.java.home' in 'gradle.properties'.

 

<오류내용>

Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Failed to read ---- from store "~~~\key.jks": Invalid keystore format

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

 

 

 

 

<해결방법>

 

Settings > build, exception, development > Gradle> JDK를 11로 설정합니다.

 

 

11이 안보이시는 분들은 아래 포스팅 보시면서 JAVA11을 설치해보세요

 

[JAVA] JDK 설치하는 방법(사이트/JAVA환경변수/JAVA설치확인) (tistory.com)

 

[JAVA] JDK 설치하는 방법(사이트/JAVA환경변수/JAVA설치확인)

JAVA JDK 설치하기 저는 JAVA11버전을 설치해보겠습니다. 1. JDK 다운로드 사이트 사이트 접속해서 openJDK Archive 클릭하기 JDK 11 Releases (java.net) JDK 11 Releases JDK 11 Releases The JDK 11 Early Access Program has conclude

leehyen.tistory.com

 

300x250
반응형

댓글