android 在framework层增加服务后编译报错

来源:互联网 发布:京东联盟源码 编辑:程序博客网 时间:2024/06/04 18:28
错误:out/target/common/obj/PACKAGING/test-api.txt:28745: error 3: Added class IHelloService to package android.os
out/target/common/obj/PACKAGING/test-api.txt:28750: error 3: Added class IHelloService.Stub to package android.os

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

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

解决方案:根据提示,编译之前先执行:make update-api,虽说刚下载的android7.0源码编译不需要执行这条命令,但是如果增加或者删除了源码的内容,还是需要更新一下current.txt

0 0
原创粉丝点击