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 solved it by changing the AndroidManifest.xml:
android:targetSdkVersion="21"
to android:targetSdkVersion="22"
Then change ActionBarActivity to Activity.
I Was Getting The Same Error !!
But What I have Learned Is when I go Below API 14 i gt the Error Otherwise It works Fine ....
The issue was fixed in an update to 4.1 SDK, but the fix has not been backported to older versions of the layout library -- yet. I believe Xav is planning on doing that along with a few other misc layoutlib fixes that have accumulated.