I'm making an app that uploads text to Firebase Firestore, it works fine except when I add a new activity. Then it gives the error "Cannot resolve symbol 'R'" on all R.id.* calls.
I've tried many strategies such as Build->Clean Project and Build->Rebuild Project but I have not found any answers on the internet to fix this.
final Button openUploadApp = (Button) findViewById(R.id.button3);
//This is one affected line and all the other lines are just like this one.
It should go and assign button3 to openUploadApp but it just gives the error stated. Thanks for your help, Mine215