반응형

 

안드로이드 스튜디오 - Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. 에러 해결방법

 

 

오래전에 작성해둔 프로젝트를 열어보았는데 다음과 같은 에러 메세지가 떠서 해결한 내용입니다.

 

 

[Error 메세지]

A problem occurred evaluating project ':app'.

> Failed to apply plugin 'com.android.internal.application'.

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

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

 

 

Error 해결방법

 

내용은 별거 없네요. 에러 메시지 내용처럼  Java버전을 변경해주면 됩니다.

 

[File] -> [Settings...] 에서

Build, Execution, Deployment -> Build Tools -> Gradle로 찾아들어가신 후 Gradle projects에서 Gradle JDK를 Java11로 변경해 주시면 됩니다. 

 

cf) 변경후 재시작 하시거나 [Build] -> [Rebuild Project] 해주시면 됩니다. 

 

 

반응형

+ Recent posts