您的位置:首页 > 移动开发 > Android开发

向Android模拟器中复制文件报out of memory错误解决

2012-08-18 14:31 633 查看
Android开发过程中,要经常用到模拟器

原因:

用Elcipse或者是Android sdk下的程序启动的模拟器,都会报这个错.

试试直接在命令行下输入

emulator -avd 你创建的avd名字(比如Android2.1) -partition-size 128

启动.

然后在复制文件就不会有问题了.
[align=center][/align]
英文原文:

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:

www.linuxidc.com

$emulator -avd youravdname -partition-size 128

Then you can try the command “adb push file /system/…”, and the problem maybe resolved.

对于4.0的系统,可以通过以下方法:

先adb shell rm system/app/xxx.apk(可以多移除几个不需要的apk)

然后再push
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐