编译安卓4.0源码出现错误

编译安卓4.0源码出现错误

make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.org.no-core-tests-res_intermediates/noproguard.classes-with-local.dex] Aborted (core dumped)

此问题是因为编译android4.0需要4GB的RAM或SWAP空间,而ubuntu默认的1GB的,所以,增加swap空间即可,执行命令如下:

sudo dd if=/dev/zero of=/boot/swapfile bs=1024 count=4194304

    sudo mkswap -v1 /boot/swapfile

    sudo swapon /boot/swapfile

    free

    sudo vi /etc/fstab

     加入/boot/swapfile swap swap defaults 1 1


你可能感兴趣的:(编译安卓4.0源码出现错误)