title: AOSP ninja build stopped: subcommand failed
body: <p>I got the following error when I try to build A7.1.  </p>
  
  <pre><code>[ 15% 1827/11495] target Package: framework-res ...bj/APPS/framework-res_intermediates/package.apk)
  warning: string 'candidates_style' has no default translation.
  warning: string 'candidates_style' is missing 41 required localizations: az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW
  warning: string 'gsm_alphabet_default_charset' has no default translation.
  warning: string 'gsm_alphabet_default_charset' is missing 90 required localizations: af_ZA am_ET ar_EG az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_AT de_CH de_DE de_LI el_GR en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU es_ES es_US et_EE eu_ES fa_IR fi_FI fr_BE fr_CA fr_CH fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_CH it_IT iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb_NO ne_NP nl_BE nl_NL pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA
  warning: string 'wfcSpnFormat' has no default translation.
  warning: string 'wfcSpnFormat' is missing 41 required localizations: az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW
  ninja: build stopped: subcommand failed.
  build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
  make: *** [ninja_wrapper] Error 1
  </code></pre>
  
  <p>But the really strange thing is that.</p>
  
  <p>I have two SDK directories like <code>/projects/SDK3288A71/</code> and <code>/projects/SRC3288A71/</code> also, try to build this each SDK and one SDK was successfully built but others happened above ninja error.</p>
  
  <p>I have tried:</p>
  
  <ol>
  <li>heap size up to 4g,6g</li>
  <li>size up to swap to 16GB</li>
  <li>make installclean -j64</li>
  <li>re-cloning from git server</li>
  </ol>
  
  <p>but I got the same error. This error point is not the same. </p>
  
  <p>Sometimes it got to 2% , 10%, 51%, 14%, 15%....
  I don't know why and what happened to this. </p>
  
  <p>Please advise me. </p>