当编译的时候,如果你在某个类中加了变量或函数或内部类或是添加了一个文件,就会出现如下的错误:
******************************
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!!!!
本文介绍了在Android开发过程中遇到API变更错误时的解决方法,包括如何使用makeupdate-api命令重新编译API,并提供了错误解决步骤及注意事项。
1549

被折叠的 条评论
为什么被折叠?



