file was loaded in the wrong encoding android studio windows

Reference Link:

Thanks to the Answer of Asim, I found deleting folder caches fixed the problem for my case (all gradle files in Android Studio show contents that have nothing to do with the actual contents of these files):

Delete caches folder.then you are good to go.