My XML layout is not rendering with this error message. I am already using Java 8.
XML
Also using latest build tools in Gradle.
and
Make sure you have installed jdk for x64 and not x84 when starting Android Studio (x64)