Android Nougat requires the IDE to be running with Java 1.8 or later
<p><a href="https://i.stack.imgur.com/vGf1D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vGf1D.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/qTT96.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qTT96.png" alt="enter image description here"></a></p>

<p>Inspite of having JDK 8 installed, I'm getting this error. What can the issue be?</p>