Android library with resources – R does not include your resources
If you have an android library project which has resources probably the sources won’t be included in the generated R file. To fix that error just change in the build.gradle file the targetSDK to 15 and everything should be fine. That L version is just not good.
Edit: You can also try to compile the project as an android application and then change it to android library.