title: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation
body: <p>Even though I manually configured JDK project structure <a href="https://i.stack.imgur.com/VxQ2W.jpg" rel="noreferrer">file/Project structure</a> it still shows this error 
  FAILURE: Build failed with an exception.</p>
  
  <p>`What went wrong:
  Execution failed for task ':sample:compileReleaseJavaWithJavac'.</p>
  
  <blockquote>
    <p>Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation.`</p>
  </blockquote>
  
  <p>I'm confused why it is still looking for C:\Program Files\Java\jre1.8.0_151 instead of JDK</p>