title: Android AOSP build fails with "Communication error with Jack server"
body: <p>I have successfully sync the source code of android-7.1.2_r11 from AOSP. Now, I got the following error while I was trying to build the source code. Anyone can tell me how I can fix it, and finish a successful build? Thanks much in advance.</p>
  
  <p>Please see the attached screenshot for detailed build error.</p>
  
  <p>BTW, my ubuntu version is 16.04. OpenJDK version is 1.8. </p>
  
  <p><a href="https://i.stack.imgur.com/r6Y9G.png" rel="nofollow noreferrer">screenshot</a></p>
  
  <p>error log:</p>
  
  <p>Communication error with Jack server (56). Try 'jack-diagnose'
  ninja: build stopped: subcommand failed.
  build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
  make: *** [ninja_wrapper] Error 1</p>
  
  make failed to build some targets (02:17:10 (hh:mm:ss))