I have added the support library v7 to my project and I think it worked because ActionBarActivity is recognized (import android.support.v7.app.ActionBarActivity works). The problem is that for all my R.ids the R is underlined with the message R cannot be resolved to a variable.
What am I doing wrong?