If you have problem in Android Studio and you have installed Android N, change Android rendering version with older one and the problem will disappear.
[Refer this link][1]
[![enter image description here][2]][2]
[1]: https://stackoverflow.com/questions/35937875/unsupported-major-minor-version-52-0-when-rendering-in-android-studio
[2]: http://i.stack.imgur.com/nG15O.png
If you have problem in Android Studio and you have installed Android N, change Android rendering version with older one and the problem will disappear.
[![enter image description here][1]][1]
[1]: http://i.stack.imgur.com/YcKrG.png