0

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?

1 Answers1

0

If you don't want to preview in Android N, you can simply lower the API preview level to API 23 or lower.

Otherwise removing old jdk versions seems to work as well.

Check out this post if you need more information.

Community
  • 1
  • 1
Charles Li
  • 1,835
  • 3
  • 24
  • 40
  • Thanks, that worked. But the API preview level was always set to 24. Why did this suddenly become a problem? Any ideas? –  Jun 26 '16 at 17:59
  • Np, I'm actually not too sure, I'm suspecting it might be due to a bug in one of the Android Studio updates (that I'm getting as well). And it'll be great if you can accept the answer if it helped you out. – Charles Li Jun 26 '16 at 18:13