运行eas build -p android结果如下:
stderr] FAILURE: Build failed with an exception.
[stderr] * Where:
[stderr] Build file '/home/expo/workingdir/build/android/app/build.gradle' line: 1
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':app'.
[stderr] > Failed to apply plugin 'com.android.internal.application'.
[stderr] > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
[stderr] You can try some of the following options:
[stderr] - changing the IDE settings.
[stderr] - changing the JAVA_HOME environment variable.
[stderr] …Run Code Online (Sandbox Code Playgroud)