make update-api 提示。

编译android的时候,经常出现这个错误


You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:

  1. You can add “@hide” javadoc comments to the methods, etc. listed in the
    errors above.

  2. You can update current.txt by executing the following command:
    make update-api

    To 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(+)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

baidu_37552881

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值