I am amazed with the creativity of the team behind the entire Android project... They always come up with some new and exciting ways to make our lives more miserable with introducing some horrible, horrible bugs, errors and randomness...
So, whenever l make new activity, it always ends up woth an error.
So, this is the process of making new activity:
Right after a make one, next error appears:
And now I have to go to: Project Structure - Dependencies - and remove then add com.android.support:appcompat and like, the bug is fixed?
Why the hell I have to do that every time? Nothing happens..I just make a new activity and everything goes to hell !
Did you add the dependency to your build.gradle file ? Have you installed the Android Support Library with your SDK Manager ?