my android studio gone crazy like this please help??
file was loaded in the wrong encoding: 'UTF-8' in android studio
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.
UTF-8, UTF-16, ISO 2022, and EUC are examples of character-encoding schemes. Encoding schemes are often associated with a particular coded character set; UTF-8, for example, is used only to encode Unicode.
The default character encoding for Android is UTF-8, as specified by the JavaDoc of the Charset.
The "encoding" of a given source file tells the compiler and the IDE how to interpret the bytes in the file as characters. The encoding used to compile your project is specified in the build. gradle files. The default, which is used when no specific encoding is specified, is UTF-8.
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.
For people in future:
I had the same problem.
I was able to solve it simply by making a copy of the project and opened the copied project. Copied project worked perfectly fine.
Note: I got this problem because of improper shutdown of my PC.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With