I have already tried invalidating caches. Clean build and rebuild project also done. But I still keep getting unresolved reference