Re: "Unable to resolve identifier..." Error
There are often issues with the way the IDE tries to parse your source code and show "errors".
You really need to treat these as a guide only. The true test is what the compiler itself gives you - if it finds an error then, regardless of what the IDE shows, you need to sort out the problem.. On the other hand, if you can compile successfully, then there are no issues.
This has been mentioned numerous times for quite a few versions of the IDE.