Hyeyeon blog

[Android] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 해결 방법 본문

개발/Android

[Android] Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 해결 방법

Hyeyeon.P 2021. 12. 7. 12:23
반응형

 

안드로이드 스튜디오에서 아래와 같은 오류가 발생하는 경우, 

An exception occurred applying plugin request [id: 'com.android.application']
> 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`.

Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle의 Gradle JDK를 11로 변경한 후 다시 빌드합니다.
윈도우의 경우, File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle에 위치합니다. 

 

728x90
Comments