mac电脑新建flutter项目可以跑起来,但是单独打开flutter中的Android项目,会报以下错误
- What went wrong:
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.Your current JDK is located in /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre 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`.
说是jdk版本不是11,但是我的Android studio已经设置了