I googled why I am getting this error, cannot resolve symbol 'R'
, and found 3 ways to solve it:
- Invalidate Caches / Restart
- Sync Gradle
- update SDK
I already tried them, but it still doesn't solve the error except the invalidate one, but the errors come back when I open the java code file. So the invalidate option is a success if I don't check the java code after it.
Is it okay if I just leave it unsolved, if no error occurs, or are there any other ways to solve it?