On creating new xml files in a project, rendering issue occur with error log as follows:
java.lang.NullPointerException Exception details are logged i
I just got the same error and have solved this.
I've created a new project and selected API 21. After the project was created I changed in the file AndroidManifest.xml:
AndroidManifest.xml
android:targetSdkVersion="21"
to
android:targetSdkVersion="22"