https://coderanch.com/t/586911/ide/Variable-references-existent-resource-workspace
I was getting similar issue for Maven project. Solution given on above site helped me.
Right click project
Run -> RunConfiguration
Delete all the configurations in the maven build, then it will create a new configuration by its self
Ref image