编译源码时出现 Checking API: checkapi-last (unknown): error 17解决方法
2013-03-18 18:41
821 查看
原文地址::http://www.eoeandroid.com/thread-84145-1-1.html
相关网帖
1.关于android中的check api----http://blog.sina.com.cn/s/blog_55b1b0d50100jlge.html
2.在Ubuntu上编译CyanogenMod 2.3 generic----http://www.linuxidc.com/Linux/2012-01/50984.htm
log:
Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
(unknown): error 17: Field android.app.Notification.FLAG_SHOW_LIGHTS has changed value from 1 to 0
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
make[1]: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38
make[1]: Leaving directory `/home1/work/android_eRD4.2/src'
make: *** [compile] Error 2
//----------------------------------------------------
这是因为修改了framework层里的东西,而且在全编译make源码之前,用了make update-api命令,导致 源码之前的api 与你自己新的源码里的值不一样导致。
解决办法:
自己找到了在framework/base/api 下有n(n取决于你源码的版本,如果你源码的版本是4.2,其api
level就是17,那么就看17.xml或者17.txt ,修改这个里面的值即可 )个xml文档,分别对应android api 的不同版本。 在这些xml中,把你在framework层中修改的地方对应进去。 如我这个错误的地方,在8.xml 和 current.xml 中找到“FLAG_SHOW_LIGHTS”,把里面的value 值改成和你代码中值一致就可以了。
//-----------------------------------------------------
是在make全编译之前忘记make update-api 导致的这个问题。解决办法有2:1、make clean--> make update-api --make ; 2、要么手动添加相应版本的api值,使编译通过。
参考:
https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
相关网帖
1.关于android中的check api----http://blog.sina.com.cn/s/blog_55b1b0d50100jlge.html
2.在Ubuntu上编译CyanogenMod 2.3 generic----http://www.linuxidc.com/Linux/2012-01/50984.htm
log:
Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
(unknown): error 17: Field android.app.Notification.FLAG_SHOW_LIGHTS has changed value from 1 to 0
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
make[1]: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38
make[1]: Leaving directory `/home1/work/android_eRD4.2/src'
make: *** [compile] Error 2
//----------------------------------------------------
这是因为修改了framework层里的东西,而且在全编译make源码之前,用了make update-api命令,导致 源码之前的api 与你自己新的源码里的值不一样导致。
解决办法:
自己找到了在framework/base/api 下有n(n取决于你源码的版本,如果你源码的版本是4.2,其api
level就是17,那么就看17.xml或者17.txt ,修改这个里面的值即可 )个xml文档,分别对应android api 的不同版本。 在这些xml中,把你在framework层中修改的地方对应进去。 如我这个错误的地方,在8.xml 和 current.xml 中找到“FLAG_SHOW_LIGHTS”,把里面的value 值改成和你代码中值一致就可以了。
//-----------------------------------------------------
是在make全编译之前忘记make update-api 导致的这个问题。解决办法有2:1、make clean--> make update-api --make ; 2、要么手动添加相应版本的api值,使编译通过。
参考:
https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
相关文章推荐
- 编译源码时出现 Checking API: checkapi-last (unknown): error 17解决方法
- 编译源码时出现 Checking API: checkapi-last (unknown): error 17解决方法
- 编译安装PHP出现configure: error: mysql configure failed. Please check config.log的解决方法
- Checking API: checkapi-last (unknown): error
- 编译安装PHP出现configure: error: MySQL configure failed. Please check config.log的解决方法
- 编译android源码时,jack server 出现out of memory error 错误的解决方法
- 编译android源码时,jack server 出现out of memory error 错误的解决方法
- 联想Linux系统转XP出现error 17错误的解决方法
- PGI安装时出现ERROR: unknown glibc version (2.4),的解决方法
- Android DownloadManager ERROR_UNKNOWN 在API 17 巨坑完美解决
- DotNet中编译出现Error spawning cl.exe(启动cl.exe失败)之解决方法
- git服务器无法clone,出现remote: error: inflate: data stream error (incorrect data check)错误解决方法
- 编译apk时出现“Error conversion to Dalvik format failed with error 1”的解决方法
- 关于编译Android时出现Error 41的解决方法
- Ubuntu 编译Android源码出现Switch.pm出错信息的解决方法
- Ubuntu中编译Android 源码出现Switch.pm出错信息的解决方法
- 使用centos linux-2.6.32-220.23.1.el6源码编译时出现的问题及其解决方法
- C++编译中出现error C2664 ,error C2440,error 2039的解决方法
- ubuntu 13 编译hadoop 2.2.0源码出现问题及解决方法
- vs2008编译时出现问题解决方法:MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16