Why do I need reset File Encodings when I restore my project from a zip backup file in Android Studio? -
i have set file encodings utf-8 in both office pc , home pc projec e:\android_studio_project\mytest, , backup whole folder e:\android_studio_project\mytest aa.zip project backup @ office pc. after restore latest aa.zip @ home pc, find file encodings reset default value gbk, have reset file encodings project, why?
btw, eclipse store settings in .metadata folder, if copy .metadata folder different pc, pc's eclipse have same ui , settings. don't know if android studio have folder .metadata.
note import settings file settings.jar can't that.
try setting utf-8 in 3 places:
- ide encoding (first combobox on screenshot)
- project encoding (second combobox on screenshot)
gradle build files
android { ... compileoptions { encoding "utf-8" sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } }
Comments
Post a Comment