向Android模拟器中复制文件报out of memory错误解决
2012-08-18 14:31
633 查看
在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:
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
原因:
用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
相关文章推荐
- 向android模拟器中复制文件报out of memory错误解决
- 向android模拟器中复制文件报out of memory错误解决
- 解决java虚拟机内存不足的错误 java.lang.OutOfMemoryError: PermGen space 没有文件TOMCAT_HOME/bin/catalina.sh
- 一图解决:navicat for mysql 导入.sql大文件 报out of memory 错误
- 关于MongoDB在64位服务器上依然报 mmap failed with out of memory 错误的解决方法(附Mysql性能对比测试)
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法以及文本文件换行
- Caused by: java.lang.OutOfMemoryError: Java heap space错误解决...
- Caused by: java.lang.OutOfMemoryError: Java heap space错误原因及解决方法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- eclipse中tomcat插件出现OutOfMemoryError错误的解决办法
- 如何解决tomcat运行报out of memory错误
- 解决Maven中OutOfMemory错误
- 修改桌面堆栈大小,解决运行大量程序时出现”Out of Memory”(内存不足)错误信息的问题
- UG 提示内存不足 out of memory 无法保存文件的解决方法,绝招哦!!
- myeclipse tomcat java.lang.OutOfMemoryError: PermGen space错误的解决方法
- android 模拟机 无法push文件到system目录报out of memory错误
- 解决Maven中OutOfMemory错误
- java.lang.OutOfMemoryError: Java heap space 错误解决方法
- Android错误:android out of memory on a xxxxx-byte allocation解决方法
- 解决Maven中OutOfMemory错误