I have tried all of the following,
- Invalidate Caches/Restart
- Sync project with gradle files
- Clean project
- Rebuild project
- gradlew clean
But, none of them worked for me.
Finally, I solved it by deleting "{ProjectFolder}/.idea/libraries", and then synced with gradle and built again.