본문 바로가기

개발 이야기

[Error] Execution failed for task 'appcompileDebugJavaWithJavac'

[Error]

appcompileDebugJavaWithJavac
에러 로그

1 Task failed with an exception.
-----------
 What went wrong
Execution failed for task 'appcompileDebugJavaWithJavac'.
 javaxxmlbindJAXBException

 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.
=================================================================

 

 

 

 

[해결방법]

1. File - Project Structure

 

2. SDK Location - JDK location was moved to Gradle Settings 

jdk location

 

3. Gradle JDK 를 1.8 version으로 수정.

1.8이 없는 경우 'Download JDK' 클릭 -> Version 1.8 다운로드 -> OK 

download jdk

 

이렇게 하면 오류 해결 완료