无法构建AOSP [run_soong_ui]错误1

时间:2017-06-27 21:12:19

标签: android android-source

我正在尝试编译android版本7.1.2 master分支。我已经按照source.android.com的说明进行了设置。当我运行make -j8时,我收到此错误以及来自jack-server的错误消息,我认为这可能与构建错误有关。详细输出的最后消息:

  

[41%1715/4084]确保Jack服务器已安装并启动   FAILED:setup-jack-server
  / bin / bash -c“(prebuilts / sdk / tools / jack-admin install-server
prebuilts / sdk / tools / jack-launcher.jar prebuilts / sdk / tools / jack-server-4.11.ALPHA.jar 2>& 1 ||(退出0))&&(JACK_SERVER_VM_ARGUMENTS = \“ - Dfile.encoding = UTF-8 -XX:+ TieredCompilation \”prebuilts / sdk / tools / jack-admin start-server 2> & 1 || exit 0)&&
(prebuilts / sdk / tools / jack-admin update server prebuilts / sdk / tools / jack-server-4.11.ALPHA.jar 4.11.ALPHA 2>& 1 || exit 0)&&(prebuilts / sdk / tools / jack-admin update jack prebuilts / sdk / tools / jacks / jack-4.31.CANDIDATE.jar 4.31.CANDIDATE || exit 47)“
  杰克服务器已安装在“/home/fabio/.jack-server”中   与Jack服务器(28)通信错误,请尝试'jack-diagnose'或查看Jack服务器日志
  与Jack服务器通信错误28.尝试'jack-diagnose'
  与Jack服务器通信错误28.尝试'jack-diagnose'
  [42%1719/4084]文档droiddoc:out / target / common / docs / api-stubs
  DroidDoc花了687秒。将文档写入out / target / common / docs / api-stubs   [42%1720/4084]文档droiddoc:out / target / common / docs / test-api-stubs
  DroidDoc花了687秒。将文档写入out / target / common / docs / test-api-stubs
  [42%1721/4084]文档droiddoc:out / target / common / docs / system-api-stubs
  DroidDoc花了705秒。将文档写入out / target / common / docs / system-api-stubs
  [42%1722/4084] // external / llvm:libLLVM链接libLLVM.so
  忍者:构建停止:子命令失败。
  16:58:24忍者失败了:退出状态1
  build / core / main.mk:21:目标'run_soong_ui'的配方失败了   make:*** [run_soong_ui]错误1

1 个答案:

答案 0 :(得分:0)

尝试使用java选项'-Xmx'

增加堆大小