The first thing you have to do in order to correct this problem is to check if you have Android 1.8 installed in your machine. To do that you have to run the following command:
If you see java version "1.8.0 ..." the problem is in your Android Studio configuration. You can check the java version in Android Studio in Android Studio->
If you see something different from Java 1.8 you have to configure Java 1.8 in the Info.plist file of Android Studio.
Go to Applications->Android Studio->Contents->Info.plist
Open the Info.plist and in the attribute <key>JVMVersion</key> put <string>1.8*, 1.8+</string>
My old configuration was:
Now I have:
Re run Android Studio and now you are could open layouts in Design tab and view the interface render.








