android 编译报错:out of space?

编译android 的时候出现如下错误:


Target system fs image: out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img

make_ext4fs -s -T -1 -S out/target/product/s3568/root/file_contexts -l 943718400 -a system out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/s3568/system
error: ext4_allocate_best_fit_partial: failed to allocate 5703 blocks, out of space?
Creating filesystem with parameters:
    Size: 943718400
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 7200
    Inode size: 256
    Journal blocks: 3600
    Label: 
    Blocks: 230400
    Block groups: 8
    Reserved block group size: 63
error: failed to build out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img from out/target/product/s3568/system
Running:  mkuserimg.sh -s out/target/product/s3568/system out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 943718400 out/target/product/s3568/root/file_contexts
Out of space? the tree size of out/target/product/s3568/system is (MB): 
896 out/target/product/s3568/system
The max is 900 MB.
make: *** [out/target/product/s3568/obj/PACKAGING/systemimage_intermediates/system.img] Error 1


#### make failed to build some targets (01:31:15 (hh:mm:ss)) ####


是因为给system image分配的空间不够导致的

需要修改:partition_table_MT6582.xls  适当加大分区表里ANDROID 或是 system 分区的大小, 如下面所示:


  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值