`
guoxinzz
  • 浏览: 430968 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

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

 
阅读更多

在android开发过程中,要经常用到模拟器

原因:

用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.

分享到:
评论
3 楼 dingran 2012-03-05  
找到原因了,用2.2的模拟器就可以了,4.0的有问题。
2 楼 dingran 2012-03-05  
哎,我也遇到了这个问题啊,很蛋疼啊。

错误如下:

emulator: WARNING: Unable to create sensors port: Connection refused
emulator: emulator window was out of view and was recentered
1 楼 coreych 2011-09-21  
这个问题我也遇到来了,确实用emulator.exe 启动可以上传,但是上传后,关闭模拟器,再用 eclipse打开模拟器,用eclipse的查看文件夹方式查看,找不到了

这是什么原因啊

相关推荐

Global site tag (gtag.js) - Google Analytics