I was making app, the app was only 10 activities and some buttons with text views nothing to complicated, it was lyrics app (it shows lyrics of music band). i was making buttons and then i made them the id's started to show up red so i wanted to know what happend and R was deleted from gen folder and suddenly all the activities became full of errors. idk what happened i tried regenerating it but no luck i tried many thing but no luck so i dont know that to do.
i deleted gen folder, and build config regenerated but not r. i tried cleaning project but no luck. i tried restoring it from history but there was no history. so idk what to do