My XML
layout is not rendering with this error message. I am already using Java 8.
Also using latest build tools in Gradle.
and
There are several thing to remember when set the STUDIO_JDK on Mac OS:
The difference between two is that Apple's Java IMO provides nicer and better fonts antialiasing in the IDE.
A reply here is referencing a bug in Android Studio regarding the fonts antialiasing. The ticket is already closed but still rendering is different for Apple Java and Oracle SDK (I have v1.8.0_102). And the former still has better perception than the last.