Finally got rid of 'R cannot be resolved' error.