ERROR: JAVA_HOME is set to an invalid directory: C:Program FilesJavajdk1.8.0_211
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Exception: Gradle task assembleDebug failed with exit code 1
I had set the direction in the System Properties, but it didn’t help
2
Answers
You need to add path for HOME directory of JDK Folder
i had same problem the solution i dowloaded Microsoft Visual C++ Redistributable from here
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
https://issuetracker.google.com/issues/247854802#comment12