Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported major.minor version 52.0 when rendering in Android Studio

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

Unsupported major.minor version 52.0

like image 720
Ivo Stoyanov Avatar asked Mar 11 '16 10:03

Ivo Stoyanov


Video Answer


2 Answers

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

like image 159
Fredblabla Avatar answered Oct 02 '22 20:10

Fredblabla


This is bug in Android Studio. Usually you get error: Unsupported major.minor version 52.0

WORKAROUND: If you have installed Android N, change Android rendering version with older one and the problem will disappear.

SOLUTION: Install Android SDK Tools 25.1.3 (tools) or higher

enter image description here

like image 28
Ivo Stoyanov Avatar answered Oct 02 '22 22:10

Ivo Stoyanov