在android开发过程中,要经常用到模拟器报内存不足OOM
原因:
用Elcipse或者是android sdk下的程序启动的模拟器,都会报这个错.
试试直接在命令行下输入
emulator -avd你创建的avd名字(比如android2.1) -partition-size 128
启动.
英文原文:
As android developer, if you use the following command like:
adb push file /system/..
and meet problems like “failed to copy file to /system/…”, such as:
failed to copy ‘file’ to ‘/system/…’: No space left on device
failed to copy ‘file’ to ‘/system/…’: Out of memory
The resolve method is not using the Eclipse or AVD Manager to start the Android emulator, but by use the command first:
$emulator -avd youravdname -partition-size 128
Then you can try the command “adb push file /system/…”, and the problem maybe resolved.
from:http://ifeisu.iteye.com/blog/1148314