Unsupported major.minor version 52.0 when rendering in Android Studio

Ivo Stoyanov picture Ivo Stoyanov · Mar 11, 2016 · Viewed 145.9k times · Source

When I try to render a layout preview in Android Studio I get error:

Unsupported major.minor version 52.0

Answer

Fredblabla picture Fredblabla · Mar 28, 2016

Check your JAVA_HOME to use jdk 1.8

Also check : the parameter in Android Studio in order to change at

File->Other Settings->Default Project Structure->SDKs