Close project the project with the error.
Open a different project and launch in emulator. Close the alternative project.
Open the original project with the error which should no longer be evidenced.
Don't know why it works or if actually launching the app is necessary but it clears the error .