setContentView(R.layout.activity_main);
gives me the error message in the title. I've tried to delete and renerate R, clean the project and nothing. activity_main is right there registered in R. I have no problems in /res, no red crosses or problems in the problems tab. There's no import android.R in my Activity. I've tried everything I could find here and nothing. "R cannot be resolved to a variable"?
What's going on?