Do you have the following in your build.gradle?
android { buildFeatures { androidResources = true } }