I magically encountered several errors at once as I opened my android project-
- Cannot resolve symbol
'R'
- Casting
findViewById(R.id.buto)
toButton
is redundant
NOTE : I didn't had a single error in any of my files last time i closed it.
Yes, I have seen several answers to this on StackOverflow.
What I did -:
- Rebuilded Project again
- I did => File> Invalidate Caches/Restart.
- Gradle Sync with project Files (it completed successfully with no errors)
- Restarted IntelliJ
I have repeated above steps 2-3 times but i am not able to solve the errors.
This is my build.gradle(app) file: build.gradle