最近编译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
分享到:
相关推荐
Android源码编译make的错误处理
All GCC 8 features, plus latest mainline feature Known Changes and Issues: Thumb1 code size regression due to new register allocation: ...Multilib is now enabled with --with-multilib-list=rmprofile when...
Android源码编译make的各类错误解决方案汇总
GitBash Windows终端工具MinGW64下执行makefile编译make命令报错:“make: command not found” 此时你需要安装次扩展工具包。 使用方法:解压后把所有文件夹及其文件复制到目录合并:C:\Program Files\Git\mingw64 ...
gdal-3.1.2源码编译结果,Ubuntu下的编译结果。
generator-makethings-源码.rar
./configure --prefix=/usr/local/android --host aarch64-linux-android --with-pic --disable-...在wsl下面用ndk20编译的, aarch64-linux-android29-clang++ aarch64-linux-android-ld 后面的写不下了。不写了
ubuntu基本的编译环境,gcc、make及build-essential,本资源提供了它们的离线安装包deb和所需要的依赖,只需要将其拷到离线电脑上,依次cd进入gcc、make、build-essential目录,执行'sudo dpkg -i *.deb'命令进行...
2.源码编译 将rxtx-2.2pre2文件夹拷贝至/usr/local目录并用命令行进入目录下。 > ./configure # 可能会报错:configure: error: cannot guess build type; you must specify one,则用下面命令运行 > ./configure...
cd express-es6-rest-api # Make it your own rm -rf .git && git init && npm init # Install dependencies npm install # Start development live-reload server PORT=8080 npm run dev # Start production server...
mozilla_源码编译简介 首先必须使用GNU make来编译mozilla的代码,其他make程序可能会有问题。编译最简单的方法就是
Makeup-UI-KitAdobeXD源码下载设计素材UI设计
Binance-api-Node API的完整API包装器。 注意:此包装器使用Promises,如果您的环境不支持它们,则可能要为其添加 。 对于PR或问题,请转到。 安装 yarn add binance-api-node 入门 导入模块并创建一个新客户端。...
mingw32-make-3.81-20080326-2.tar.gz
在编译代码的时候经常会使用make命令反而在bash下默认是不支持的。 把该文件进行解压 把解压出来的文件全部拷贝的git的安装目录下: . \Program Files\Git\mingw64\ ,把文件夹进行合并,如果跳出来需要替换的文件要...
make-multiFASTA-源码.rar
make under windows make-3.81.exe
Laravel Api控制器 默认情况下可以为您的模型扩展的基本CRUD API方法具有列表,显示,更新,...安装通过作曲家安装composer require phpsa/laravel-api-controller发布配置文件(可选-如果您需要更改任何默认配置) ...
若要自定义交叉编译工具,比如在嵌入式系统运行,则只要修改 unix\Makefile文件下的: #CC = cc 这句屏蔽 并修改对应的路径 CC = /home/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-gcc-4.4.6 然后重新...
Linux下有一款非常好用的写C++的IDE,code::blocks,其采用自有的工程文件(.cbp)来组织相关源代码。但是有的时候希望能够脱离CB,以便于源代码的分享。常见开源项目采用makefile来组织源代码的编译。cbp2make可以...