2018-05-22 AOSP Ninja & Jack

【转】Android N(7.0) 编译出现ninja_wrapper Error

Android 7.0以后采用了Jack server编译,如果直接下载源码编译的话会出现下面的编译错误

  • way 1. Jack

查看根目录是否有”.jack-settings”

# Server settings
SERVER_HOST=127.0.0.1
SERVER_PORT_SERVICE=8076
SERVER_PORT_ADMIN=8077
 
# Internal, do not touch
SETTING_VERSION=4

查看Jack

#启动Jack server
jack-admin start-server
 
#查看Jack server状态
jack-admin server-stat
 
#查看当前服务器有那些Jack server是运行中的
jack-admin list-server
 
#停止Jack server
jack-admin stop-server
虽然在fullbuild过程中会自动启动j
  • way 2. Ninja

Error: build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
https://groups.google.com/forum/#!topic/android-building/bNjUt5fSb2E

make clobber
export USE_NINJA=false

你可能感兴趣的:(2018-05-22 AOSP Ninja & Jack)