Home > Mobile >  why is this an invalid directory?
why is this an invalid directory?

Time:01-15

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

https://issuetracker.google.com/issues/247854802#comment12

  • Related