Java – file was loaded in the wrong encoding: ‘UTF-8’ in android studio

android-studioencodingjavasyntax-errorutf-8

my android studio gone crazy like this please help??

file was loaded in the wrong encoding: 'UTF-8' in android studio

file was loaded in the wrong encoding: 'UTF-8' in android studio

Best Answer

An encoding issue can be solved by deleting all files contained in the Android Studio "caches" folder, which can be found in "C:\Users<username>.AndroidStudioX.Y\system\caches".

Make sure that to close Android Studio before deleting.