Android下新增api编译问题
来源:互联网 发布:松下tda600编程软件 编辑:程序博客网 时间:2024/04/27 22:06
Android下新增api编译问题
当我们对framework/base/下新增aidl,也就是新增向上api的时候,编译容易出现以下的错误:
frameworks/base/api/system-current.txt:25031: error 8: Removed public class android.os.IXxxService
frameworks/base/api/system-current.txt:25036: error 8: Removed public class android.os.IXxxService.Stub
out/target/common/obj/PACKAGING/system-api.txt:25035: error 3: Added class IXxxService to package android.os
out/target/common/obj/PACKAGING/system-api.txt:25040: error 3: Added class IXxxService.Stub to package android.os
这是因为新增或者修改的api没有及时同步到/frameworks/base/api/system-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.
******************************
这个时候我们就需要先执行:
# make update-api
进行同步,再对代码进行编译便可解决上面的问题。
- Android下新增api编译问题
- Android 2.3新增API - DownloadManager
- Android 2.3新增API - DownloadManager
- Android下新增JNI过程中启动新增系统服务(addService)遇安全错误问题
- android linux下编译问题
- Android 3.0 SDK中新增API详解
- Android 3.0 SDK中新增API详解
- Android 3.0 SDK中新增API详解
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 5.0 API新增和改进
- Android 6.0 新增API 简介(1)
- java.sql.date与java.util.date区别以及数据库中插入带时分秒的时间
- POST GET比较
- iOS基础之路:面向对象程序设计的特性
- 我对图像金字塔的理解及OpenCV下的实现代码
- java中多线程常见的几个参数
- Android下新增api编译问题
- python自动生成执行集群操作脚本
- JavaScript 变量作用域、this、闭包
- Android Studio常用快捷键
- Concurrency Managed Workqueue之(二):CMWQ概述
- express 工程练习
- android 使用GreenDao
- 【Unity Shaders】学习笔记之为创建自定义慢反射光照模型(五)
- logback 实现debug 日志和warn(error)日志分开打印