okay... I know this is a repeat but, nothing is wrong with my xml. r isn't imported and I have tried cleaning my project.
It started when I added a .png in my drawble folder and I removed it and the error still protists. I don't know what else to try but it is really frustrating.
I have also tried to create new project and the error generators on those too.
Update* I did all of these things and none worked on my first project, but when I created a new one it worked? and before it didn't so something fixed it! I will just transfer my code to that one. Thank you everyone