I've tried almost all the solutions available online, but this problem hasn't gone away.
I've tried:
- invalidate caches/ Restart
- restart android studio and my laptop
- rebuild project
- refresh gradle

But nothing has worked.
Is there any other way to solve this issue?