title: Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)' after updating java version to 11
body: <p>I am not able make build after changing jdk to jdk11.0.15.1.</p>
  <p>It gives following error:</p>
  <blockquote>
  <p>Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.</p>
  </blockquote>
  <p>When I check in cmd with command &quot;java -version&quot; it says java 11 is current version and when I command &quot;javac -version&quot; it gives javac 11 as current version.</p>