android4.4编译失败,出现“virtual memory exhausted: Cannot allocate memory”
来源:互联网 发布:深圳乐易网络双休吗 编辑:程序博客网 时间:2024/05/18 03:06
编译android4.4时,中途出现“virtual memory exhausted: Cannot allocate memory”,字面意思是虚拟内存不够用了,应该是安装虚拟机时默认分配的swap空间偏小了。
输入命令
free -m
发现swap剩余空间确实很小了。
增大swap空间:
dd if=/dev/zero of=/var/swap bs=1024 count=4096000
mkswap /var/swap
swapon /var/swap
free -m
重新编译android,成功,没有再提示上述错误。
另外swap空间不需要时也可以释放:
swapoff /var/swap
rm -rf /var/swap
阅读全文
0 0
- android4.4编译失败,出现“virtual memory exhausted: Cannot allocate memory”
- 编译QT程序出现virtual memory exhausted: Cannot allocate memory
- 编译出现错误virtual memory exhausted: Cannot allocate memory
- PHP源码安装出现virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- 编译时:virtual memory exhausted: Cannot allocate memory
- Linux编译时:virtual memory exhausted: Cannot allocate memory
- virtual memory exhausted:cannot allocate memory
- virtual memory exhausted:Cannot allocate memory
- virtual memory exhausted: Cannot allocate memory
- virtual memory exhausted: Cannot allocate memory
- 云端Ubuntu:Virtual memory exhausted:Cannot allocate memory
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
- linux下由于内存不足造成的 virtual memory exhausted: Cannot allocate memory, qt **.o文件 file not found
- 滴滴云服务器安装php的时候报错virtual memory exhausted: Cannot allocate memory make: *** [ext/fileinfo/libmagic/ap
- 设计模式【状态模式State Pattern】
- 监听、控制软键盘的弹出和收起
- Init进程笔记
- altera FPGA介紹
- Fiddler 手机抓包步骤
- android4.4编译失败,出现“virtual memory exhausted: Cannot allocate memory”
- 如何用命令开启相机
- 不重复伪随机数生成
- es6等新技术的学习网址
- Kotlin基础(一)--- 基本类型
- arm交叉编译器gnueabi、none-eabi、arm-eabi、gnueabihf、gnueabi区别
- [jzoj5406]【NOIP2017提高A组模拟10.10】Tree
- javascript 引用类型console.log调试 技巧
- elasticsearch分词聚合查询demo