Ubuntu编译Android源码出错及问题解决(3)

(9)frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone).  Stop.错误。
解决办法:
在build/tools/findleaves.sh中的第89行,
这一句find “${@:0:$nargs }” $findargs -type f -name “$filename” -print |
改为find “${@:1:$nargs-1 }” $findargs -type f -name “$filename” -print |
(10)frameworks/base/tools/aidl/AST.cpp:10: error: ‘fprintf’ was not declared in this scope的错误
解决办法:
下载gcc-4.3和g++-4.3
apt-get install gcc-4.3 g++-4.3
大约十多兆,然后
进入/usr/bin
cd /usr/bin
建个软连接
ln -s gcc-4.3 gcc
ln -s g++-4.3 g++

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/24130.html