So I discovered that if you put something below another thing in the XML like this for example:
android:layout_below"@id/something"
It will kill your R.
You can fix it by changing the code to this:
android:layout_below"@+id/something"
This kinda thing has been happening to me a lot lately.