Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

1.问题:Android Gradle需要java11,你当前的使用的java8,编译不过。

错误提示如下:当前AS不满足当前工程编译环境

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8._第1张图片

 Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8._第2张图片

2.问题原因:把sdk 编译版本改成31后,就出现了这个问题

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8._第3张图片

3.解决办法:1.File->Project Structure->Gradle Settings,选择合适的jdk,如下11 version  2.或者升级android studio 到最新版本,ok

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8._第4张图片

 

你可能感兴趣的:(Android,入门,error,android,studio,java)