android system image 编译出错,Android framework 编译常见错误

常见错误:

1)  添加系统API或者修改@hide的API后,需要执行

make update-api,然后再make

2) 修改公共api后,需要

make update-api

比较framework/base/api 下的current.xml跟原始x.xml(比如2.2为8.xml 2.3.3为10.xml),同时修改x.xml

然后make

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.

******************************

3)缺失libsndfile_intermediates

make: *** No rule to make target `out/target/product/xxx/obj_arm/STATIC_LIBRARIES/libsndfile_intermediates/export_includes'

needed by `out/target/product/xxx/obj_arm/EXECUTABLES/test-resample_intermediates/import_includes'.  Stop.

mmm system/media/audio_utils/

4)系统system分区大小不够 /build/tools/releasetools/build_image.py out/target/product/xxx/system out/target/product/xxx/obj/PACKAGING/systemimage_intermediates/system_image_info.txt out/target/product/xxx/obj/PACKAGING/systemimage_intermediates/system.img || ( echo "Out of space? the tree size of out/target/product/xxx/system is (MB): " 1>&2 ; du -sm out/target/product/xxx/system 1>&2; echo "The max is $(( 2147483648 / 1048576 )) MB." 1>&2 ; mkdir -p out/dist; cp out/target/product/xxx/installed-files.txt out/dist/installed-files-rescued.txt; exit 1 ) Running:  mkuserimg.sh -s out/target/product/xxx/system out/target/product/xxx/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 2147483648 out/target/product/xxx/root/file_contexts make_ext4fs -s -T -1 -S out/target/product/xxx/root/file_contexts -l 2147483648 -a system out/target/product/xxx/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/xxx/system Creating filesystem with parameters:     Size: 2147483648     Block size: 4096     Blocks per group: 32768     Inodes per group: 8192     Inode size: 256     Journal blocks: 8192     Label:      Blocks: 524288     Block groups: 16     Reserved block group size: 127 error: ext4_allocate_best_fit_partial: failed to allocate 2461 blocks out of space? error: failed to build out/target/product/xxx/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/xxx/system Out of space? the tree size of out/target/product/xxx/system is (MB):  2031    out/target/product/xxx/system The max is 2048 MB. make: *** [out/target/product/xxx/obj/PACKAGING/systemimage_intermediates/system.img] Error 1 #### make failed to build some targets (01:47:21 (hh:mm:ss)) #### /work/xxxx/device/mediatek/build/build/tools/ptgen/xxxxx/partition_table_xxx.xls

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值