To fix the error, delete and import again all Java imports by going to File > Settings > Editor > General > Auto Import > Java > Click both options & Delete all the import and error Cannot resolve Symbol Java Android Studio would be fixed.
Follow below steps one-by-one to fix the issue:
- File > Settings > Editor > General > Auto Import > Java
Click on the two options under java - Delete all the imports
- Wait for the imports to kick in
hope above steps helped you to fix the error Cannot resolve Symbol Java Android Studio error.