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

須要修改frameworks/base/下的代碼,請注意 :若是修改了Android原有API的 ,須要update frameworks/base/api/current.txt。不然編譯被中斷並出現下面提示。 
能夠經過運行 make update-api 後,自動更新此文件,檢查確認正確後,跟代碼一塊兒提交便可。
Note: 本週碰到這樣case ,是由於修改了: M frameworks/base/core/java/android/provider/Contacts.java 

Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
Checking API: checkapi-current
*******************************************************************************
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 commands:
p4 edit frameworks/base/api/current.xml
make update-api
To check in the revised current.xml, you will need OWNERS approval.
******************************************************************************************java

 

原文地址:http://hi.baidu.com/317264476/item/29375493a1dd08dd1f427187linux

相關文章
相關標籤/搜索