When I run my React Native project in Visual Studio Code I’ve got this error
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_181 Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
But my path in Environment Variables is correct,why am I getting this error when the path is correct