关于源码编译每次提示有错误 要make update-api
2015-01-16 22:30
816 查看
最近编译newline的版本的时候。。同事修改了andoid默认输入法为百度。这是系统自动提供的API,所以每次编译会提示
此时在编译源码生成SDK的过程中会出现这个问题:
******************************
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.
******************************
make update-api #如果你在Android源码中添加了自定义的包、类、方法或者你修改了Android源码中标识为@hide的方法、类,你需要这些内容对 Application可见并且需要编译进SDK的Document中的话,这个命令是必须的(其实还有另外一种手工修改的方式替代这个命令的,呵呵);
因为每次下载新版本编译都会有错误后。执行make update-api才能通过。很麻烦。我通过 下面方法解决:
先下载新代码源码编译。错误后执行 make update-api 。以后不会有错误。然后 找到frameworks/base/api/ current.txt
,把这个文件替换代码库的frameworks/base/api/ current.txt。以后你从代码库下载最新代码就不需要 make
update-api
此时在编译源码生成SDK的过程中会出现这个问题:
******************************
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.
******************************
make update-api #如果你在Android源码中添加了自定义的包、类、方法或者你修改了Android源码中标识为@hide的方法、类,你需要这些内容对 Application可见并且需要编译进SDK的Document中的话,这个命令是必须的(其实还有另外一种手工修改的方式替代这个命令的,呵呵);
因为每次下载新版本编译都会有错误后。执行make update-api才能通过。很麻烦。我通过 下面方法解决:
先下载新代码源码编译。错误后执行 make update-api 。以后不会有错误。然后 找到frameworks/base/api/ current.txt
,把这个文件替换代码库的frameworks/base/api/ current.txt。以后你从代码库下载最新代码就不需要 make
update-api
相关文章推荐
- 关于源码编译每次提示有错误 要make update-api
- 关于源码编译每次提示有错误 要make update-api
- Android系统源码编译 unsupported reloc 43 和 make update-api
- 编译android源码时错误提示:"duplicate entry: xxx.xx"
- Android 源码编译make的错误处理
- 关于2.4内核下编译sqlite提示tcl***错误的说明
- 关于android源码中的APP编译时引用隐藏的API出现的问题
- 编译Android源码 解决[out/target/common/docs/api-stubs-timestamp] 错误 45
- GCC 源码编译 mpc mprf gmp 不用make(否则会有lib/libgmp.so: could not read symbols: File in wrong format等错误)
- 编译android源码,报:make警告:检测到时钟错误
- 在单独编译android源码中的应用时出错make: *** [out/target/common/obj/APPS/TabPro_intermediates/src/R.stamp] 错误 1
- Android源码编译make的错误处理
- Android源码编译make的错误处理
- Android源码编译make的错误处理
- Android 源码编译make的错误处理
- 关于编译ffmpeg的output-example.c和api-example.c 错误的一些解决方法
- Android源码编译make的错误处理
- 在单独编译android源码中的应用时出错make: *** [out/target/common/obj/APPS/TabPro_intermediates/src/R.stamp] 错误 1
- 关于make/编译android源码中的Launcher2出现错误/error41
- 解决 vs2005编译错误提示 "how to make cross-thread calls"超简单实例