Before asking the question, I searched for a similar question on StackOverflow:
file was loaded in the wrong encoding: 'UTF-8' in android studio
But
I was having the same problem.. and i solved it by changing the CR to CRLF AND then refresh the project like done in following image
CHOOSE CRLF (image)