Android source code compile error: “Try increasing heap size with java option '-Xmx'”

前端 未结 6 1304
北恋
北恋 2020-12-04 18:40

Error happens when I try to compile Android source code(Sourcecode-version: 6.0.1; RAM: 6G; host system: ubuntu 14.04),log is below:

including ./system/netd/         


        
6条回答
  •  既然无缘
    2020-12-04 19:02

    I also had this problem after updating to 6.0 My computer is an i7 laptop with 8GB of ram. It worked fine with v5.x and below.

    The reason is not enough memory as the error message states. In the v6.x build, more Jack is used. In my case, reducing the number of Jacks to 1 resolved the issue.

    I can now continue compiling with 8GB of ram.

    $HOME/.jack-server/config.properties
        jack.server.max-service=1
    
    [100% 19740/19740]
    #### make completed successfully (11:55:27 (hh:mm:ss)) ####
    

提交回复
热议问题