编译时重新编译api的错误

来源:互联网 发布:java有哪些集合类 编辑:程序博客网 时间:2024/06/03 13:38

当编译的时候,如果你在某个类中加了变量或函数或内部类或是添加了一个文件,就会出现如下的错误:

******************************

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.xml by executing the following command:

         make update-api

 

      To submit the revised current.xml to the main Android repository,

      you will need approval.

******************************

这个错误的解决方法是输入:make update-api命令。重新编译一下api!!!!

0 0
原创粉丝点击