Every time when i start a new project, after gradle finishes it shows this warning to me.
Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle build files (UTF-8). This can lead to serious bugs.
Is anyone know how to overcome this issue?
When you get that warning, click on Open File Encoding Settings. Then change both IDE Encoding and Project Encoding to UTF-8 from the select box. You can also change the default encoding at the bottom of the settings menu.
In your Android Studio open File >> Settings >> Editor >> File Encodings
And then set IDE Encoding, Project Encoding and Default encoding for properties file to UTF-8 as shown in the image below.
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