LoginSignup
0
1

More than 1 year has passed since last update.

「Android Gradle plugin requires Java 11 to run.」エラーの対処法

Posted at

アプリを実行すると以下のエラーが発生しました。

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

対処法

Java 11を選択することで解決します

Android StudioPreferencesを開く

command + ,でも開けます。

Build, Execution, Deployment > Build Tools > Gradleを開く

Gradle JDKから11 version 11.0.10を選択します。

スクリーンショット 2021-08-18 19.04.59.png


これでアプリが実行出来ると思います!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1