编译android的时候,经常出现这个错误
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
-
You can add “@hide” javadoc comments to the methods, etc. listed in the
errors above. -
You can update current.txt by executing the following command:
make update-apiTo submit the revised current.txt to the main Android repository,
you will need approval.
这是由于修改了frameworks 内容后,没有把下面三个文件一起上传。导致拉下来的代码出现上面错误。
frameworks/base/api/current.txt
frameworks/base/api/system-current.txt
frameworks/base/api/test-current.txt
git pull下,解决
[ 26% 471/1774] Checking API: checksystemapi-last
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed
make: *** [ninja_wrapper] Error 1
boe@boe-opt:~/opt/share/work/rk3288_public/RK3288AND7.1CASH$ git pull
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 6), reused 4 (delta 2), pack-reused 0
Unpacking objects: 100% (8/8), done.
c1e85097de…03a358201e master -> origin/master
Updating c1e85097de…03a358201e
Fast-forward
frameworks/base/api/current.txt | 2 ++
frameworks/base/api/system-current.txt | 2 ++
frameworks/base/api/test-current.txt | 2 ++
3 files changed, 6 insertions(+)