我最近编译源码突然发现以下错误:
doudouhe@ubuntu:/media/74E0CCF7E0CCC11A/WORKING_DIRECTORY$ lunch full-eng
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: 权限不够
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: 权限不够
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: 权限不够
/bin/bash: build/core/find-jdk-tools-jar.sh: 权限不够
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com。 停止。
** Don't have a product spec for: 'full'
** Do you have the right repo manifest?
可能是文件权限问题
用ls -al 查看整个源代码的权限和用户属性
更改文件夹及子文件的权限: chmod -R 777 文件/目录
更改文件夹及子文件的属性:chown -R userName:groupName 文件/目录
之后该问题解决了