Android4.1 compile problem
来源:互联网 发布:java函数返回值为数组 编辑:程序博客网 时间:2024/06/06 00:16
编译 Android 4.1 出现以下问题:
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed
在网上找到有人遇到这个问题,原因是系统没有swap分区:解决办法如下:
原因分析:主要是Linux 系统没加swap分区的原因,或是swap分区太小。
解决办法:解决的方法很简单,建个swap文件。
#sudo dd if=/dev/zero of=/opt/other/swapfile bs=1024 count=512K
# sudo mkswap /opt/other/swapfile
# sudo swapon /opt/other/swapfile
# swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 1128440 39588 -1
/opt/other/swapfile file 524280 0 -2
需要注意:在出现这样的情况下,编译命令最好使用单线程的,即make,而不要使用make -j4(可能会出现上面的问题)。
使系统开机时自启用,在文件
/etc/fstab
中添加一行:
/opt/other/swapfile swap swap defaults 0 0
- Android4.1 compile problem
- A Loki compile problem
- linux compile problem
- android otapackage compile problem
- c++11 compile problem
- QT【002】- mac QT Mac compile problem
- Android4.1
- Protobuf Lesson 1: compile
- webkit compile problem——std::exception::_Raise undefined symbol
- Cross compile problem: cannot run test program while cross compiling
- hi3716c android4.0编译错误frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member functio
- Android4.0和Android4.1全屏方法
- Android4.0和Android4.1全屏方法
- Minimizing Compile-time Dependencies 1
- 下载Android4.1源码
- Android4.1APi MediaPlayer
- Android4.1 InputManagerService 流程
- android4.1源码下载
- 删除链表中一个位于中间位置的节点
- 关于CentOS系统自带BCM 5709网卡驱动版本Bug问题
- SQL Server 2005中触发器监控数据库变化
- ORA-20000: ORU-10027: 执行存储过程的错误
- 关于memcache分布式一致性hash
- Android4.1 compile problem
- ldconfig命令作用
- 自定义toast
- 中序遍历和先序遍历/后序遍历构建二叉树
- MyBatis-Spring-SqlSessionFactoryBean
- android短信窃听器
- 自己写的c++ CProgess类
- 强连通分支
- MySQL存储引擎比较