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.

enter image description here

try setting utf-8 in 3 places:

  1. ide encoding (first combobox on screenshot)
  2. project encoding (second combobox on screenshot)
  3. gradle build files

    android { ... compileoptions { encoding "utf-8" sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } }


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -