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)
300x250
반응형
'App Dev > Android' 카테고리의 다른 글
[Android] 안드로이드 스튜디오 패키지명 변경하기 (0) | 2023.04.10 |
---|---|
[android studio] 액티비티 있는 기본 프로젝트 만들기(new project / empty activity) (0) | 2023.03.21 |
안드로이드스튜디오 R오류 수정하기 (0) | 2023.01.29 |
[android] keystore(jks파일) pem파일 만드는 방법 (1) | 2023.01.11 |
JAVA, Android Studio 설치하기 (0) | 2023.01.05 |
댓글