Android源码编译问题

2018-06-07  本文已影响2人  使劲挤海绵
  see build/core/apicheck_msg_current.txt
******************************
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.

解决方案:
(1)执行 make update-api命令
(2)则新的 Api或者常量名会保存更新到 /framework/base/api/current.txt中
(3)利用 git status 命令就可以发现,current.txt文件被修改了
(4)记得要将新的 current.txt文件上传到git,其他人员才能同步你的修改;
待续

frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java:5763: cannot find symbol
symbol  : variable KEYCODE_STB_RESET
location: class android.view.KeyEvent
                case KeyEvent.KEYCODE_STB_RESET:
                             ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

解决方案:
(1)执行 make update-api 命令;
(2)然后在 项目目录下执行 mm 命令;

上一篇 下一篇

猜你喜欢

热点阅读