Hi,
I get this error when I try to build via simulator:
FAILURE: Build failed with an exception. 11:21:45.158 11:21:45.158 \* What went wrong: 11:21:45.158 Gradle 5.1.1 requires Java 8 or later to run. You are currently using Java 7. 11:21:45.158 11:21:45.158 \* Try: 11:21:45.158 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 11:21:45.158 11:21:45.158 \* Get more help at https://help.gradle.org 11:21:45.158 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 11:21:45.473 Android build failed (1) after 13 seconds
But My java is: version 8 update 221 (found it via “about java” on windows).
What to do?