If you've tried all the previous solutions and the issue still persists, simply restarting Android Studio may resolve it—it worked for me!