cd ~
git clone https://github.com/rovo89/XposedTools.git
修改配置文件
cp build.conf.sample build.conf
vim build.conf
如下配置
[General]
outdir = /Users/zxc/Android/n/out #输出目录,out一定要存在
javadir = /Users/zxc/Android/n/XposedBridge #XposedBridge的 位置
[Build]
# Please keep the base version number and add your custom suffix
version = 89 (custom build by xyz / %s)#我们这里是89版本
makeflags = -j8 #8个线程同步
[GPG]
sign = release
user = 852109AA!
# Root directories of the AOSP source tree per SDK version
[AospDir]
#19 = /android/aosp/440#21 = /android/aosp/500
25 = /Users/zxc/Android/n #安卓7.1源码位置,上边两个注释# SDKs to be used for compiling BusyBox# Needs https://github.com/rovo89/android_external_busybox
[BusyBox]#下面的都改成25,看资料说不改也行
arm = 25
x86 = 25
armv5 = 25
Checking build tools versions...
build/core/main.mk:159: ************************************************************
build/core/main.mk:160: You are building on a case-insensitive filesystem.
build/core/main.mk:161: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:162: ************************************************************
build/core/main.mk:163: *** Case-insensitive filesystems not supported.
Can not find SDK 10.8 at /Developer/SDKs/MacOSX10.8.sdk
解决办法就是将mac_sdk_versions_supported改为系统中所装版本或者自己下载一个放在sdk目录
external/libcxx/include/cstdlib:167:44: error: declaration conflicts with target of using declaration already in scope
解决办法:见stackoverflow,Xcode降级到8.3.3
stackoverflow.com/questions/4…