Android编译错误:You have tried to change the API from what has been previously approved.

来源:互联网 发布:2017全球云计算大会 编辑:程序博客网 时间:2024/06/06 04:28

编译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.
******************************


build/core/tasks/apicheck.mk:62: recipe for target 'out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp' failed
make: *** [out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp] Error 38
make: *** Waiting for unfinished jobs....


根据错误提示执行sudo make update-api问题解决。

阅读全文
0 0
原创粉丝点击