For R.java Errors do one of the following:
1- Right-click on the project then Refresh
2- Select Project → Clean. Eclipse will rebuild
the project from scratch, which often results in
an error-free build.
3- Select Window → Run Android Lint. This can
often pull the pieces of your project together.
4- Delete your gen directory and when Eclipse
rebuilds, it will create a new gen directory with
a fully-functional R class.
Solution was a combination of the steps here (most notably the "add to
build path" bits) and getting the appcompat library from the earlier
project, not from the SDK, which (for some reason I don't understand)
Working now anyway.
First check if Eclipse includes appcompat_v21 on your Library path.
Right click on your project -> Properties -> Android
Check if the project appcompat_v21 is checked.
If it doesn't solve your problem. Carefully check the your
And change android:theme into:
Then, clean your project and it should be fine.
I have successfully build and added the appcompat project in NetBeans.
Create a new android project in netbeans - I called mine "appcompat".
Build your new project just make sure it can be successfully build.
Delete everything inside the src directory and rebuild. My project
just contained the default MainActivity that was created by NetBeans.
You don't need it.
Navigate to your android sdk inst