My android studio was working great, when the design view stopped working abruptly. By design view I mean the preview of the UI one designs in XML. I get a message saying
Android N requires the IDE to be running with Java 1.8 or later. Install a supported JDK
I am not sure why this happened without me doing anything. How should I resolve this error?