android模拟器错误No space left on device解决方法
2014-12-23 18:36
741 查看
运行apk加载到模拟器时出现下面错误:
Failed to install hello.apk on device 'emulator-5554': No spaceleft on device
com.android.ddmlib.SyncException: No space left on device
Launch canceled!
重启eclipse和模拟器无效,修改模拟器的sd卡和heap大小无效,删除模拟器重新建立也不行。
经查阅网上的资料发现:原来apk应用的大小超出了android支持的最大限度,由于在drawable中加入过大的视频和图片等导致的,如果不是apk本身需要带的视频或图片的话,最好把资源放到SD卡里,删掉这些过大的资源后正常了。
Google市场对apk大小的限制为:
APK file size: Maximum supported size is 50MB.
网上搜到的解决方法:
http://stackoverflow.com/questions/3536463/android-application-apk-maximum-size
http://stackoverflow.com/questions/3584297/installing-application-on-sd-card-in-android-sdk-2-2
The reason you are getting that error is that, after the androidos takes the needed ram out of those 192MB, the "app size ram" isnot enough to hold that 50+mb application.
I thought that installLocation would install directly to SD, butthat is not the case.
Failed to install hello.apk on device 'emulator-5554': No spaceleft on device
com.android.ddmlib.SyncException: No space left on device
Launch canceled!
重启eclipse和模拟器无效,修改模拟器的sd卡和heap大小无效,删除模拟器重新建立也不行。
经查阅网上的资料发现:原来apk应用的大小超出了android支持的最大限度,由于在drawable中加入过大的视频和图片等导致的,如果不是apk本身需要带的视频或图片的话,最好把资源放到SD卡里,删掉这些过大的资源后正常了。
Google市场对apk大小的限制为:
APK file size: Maximum supported size is 50MB.
网上搜到的解决方法:
http://stackoverflow.com/questions/3536463/android-application-apk-maximum-size
http://stackoverflow.com/questions/3584297/installing-application-on-sd-card-in-android-sdk-2-2
The reason you are getting that error is that, after the androidos takes the needed ram out of those 192MB, the "app size ram" isnot enough to hold that 50+mb application.
I thought that installLocation would install directly to SD, butthat is not the case.
相关文章推荐
- Linux下Apache重启遇到No space left on device错误的解决方法
- linux QT 安装出现No space left on device错误 解决方法
- Linux服务器提示No space left on device错误解决方法
- django出现Errno=No space left on device (ENOSPC)错误的解决方法
- Linux中出现“No space left on device”错误的排查与解决方法
- centos编译内核出现:no space left on device 解决方法
- No space left on device /tmp 原因和解决方法
- boot2docker里报"no space left on device" error的解决方法
- java.io.IOException: No space left on device错误解决办法
- No space left on device: AH00023: Couldn't create the proxy mutex 解决方法
- 刷入Xposed时遇到cp write error no space left on device错误的解决办法
- Hadoop “No space left on device”问题解决方法
- CentOS 出现no space left on device错误解决办法
- Android真机调试超时错误解决方法(Android error: Failed to install *.apk on device *: timeout )
- Android Camera No space left on device
- 安装软件致命错误:fatal error: error writing to /tmp/ccEmEL8S.s: No space left on device
- .[No space left on device]问题解决
- 解决ORA-27154,ORA-27300,ORA-27301:No space left on device
- Repo同步错误 OSError: [Errno 28] No space left on device
- Linux内核更新,解决"gzip: stdout: No space left on device"问题