api - 构建修改后的 AOSP 引发错误(尝试更改 API)

标签 api build hide android-source

out/target/common/obj/PACKAGING/public_api.txt:4316: error 5: Added public field android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_MOVEMENT


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

所以我试图在我的成员变量中添加一个 @hide 注释,但它只会给我另一个错误:
frameworks/base/core/java/android/app/admin/DevicePolicyManager.java:233: cannot find symbol
symbol  : class hide
location: class android.app.admin.DevicePolicyManager
    @hide

我怎么解决这个问题?

最佳答案

我犯了使用 @hide 的错误如 @Override ,但您必须在 JavaDoc 注释中使用它:

/**
  * @hide
  */

关于api - 构建修改后的 AOSP 引发错误(尝试更改 API),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15313766/

相关文章:

javascript - jquery 在执行 .hide() 和 .fadeIn() 方法之前闪烁 Div 元素

javascript show hide div by id 问题

javascript - StackOverflow API - 显示结果时出现问题

linux - 如何在 Makefile 中捕获退出 (ctrl+c) 信号?

android构建错误: BEGIN failed--compilation aborted at external/webkit/WebCore/dom/make_names. pl line 38

java - 如何将一个jar文件提取并分成多个?

jquery - 如何将 show() 和 hide() jquery 函数应用于 css 显示属性

php - 使用 Imgur API 和 PHP 获取图像数据

php - 使用 PHP 通过 Instagram API 存储 json

rest - 在 REST API 中更改用户密码