• Ask a Question
  • Create a Poll
150
    Ask a Question
    Cancel
    150
    More answer You can create 5 answer(s).
      Ask a Poll
      Cancel

      React Native:JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_181

      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

      0 Answers