ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.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
CodePudding user response:
You need to add path for HOME directory of JDK Folder
C:\Program Files\Java\jdk1.8.0_211\Contents\Home
CodePudding user response:
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