I’m making an Android app. It was working fine, I was fiddling around with stuff, editing the layout xml files, when suddenly it started creating the wrong activities whenever an activity was made. for example, if I want to get the stats.xml layout, I try setContentView(R.layout.stats);, but that gives me a different page (the one before alphabetically, called signup.xml).
It works if I use setContentView(R.layout.stats + 1); but it’s pretty worrying to have to do this! Is there some way I can tell the AndroidManifest.xml file to recalculate all the R.layout integers or something? And what might I have done to cause this bug (assuming this isn’t a feature!)?
Clean the project or delete the R class manually.