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 have met the same problem When using Eclipse with ADT (both are the latest version).
It seems like a bug of adt, the only solution I found (but a simple one) is just restart Eclipse, then the errors disappear.
I restarted my eclipse. Its working fine now. The problem is sdk is not loaded properly in my eclipse.
Try to start eclipse otherwise once check your sdk manager is everything installed or not.
Have you used any fragment in your xml? please add the library supported for fragmnet named "android-support-v7-appcompat"
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
:
android:targetSdkVersion="21"
to
android:targetSdkVersion="22"
Google has been deprecated the Class ActionBarActivity
.If your 'Activity Class' extends
it, this error occurs.
ActionBarActivity
to Activity
and save Changes.I start my eclipse again it works fine now. Also in some cases it might occur on creating a new activity, in that case you need to remove some access generated code in AndroidManifest.xml file.