Android4.03中遭遇Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE异常及解决方法
这几天在测试一个Android应用在4.0+版本上运行情况,遭遇如下错误:
[2012-02-17 11:20:51 - 项目名称] New emulator found: emulator-5554
[2012-02-17 11:20:51 - 项目名称] Waiting for HOME ('android.process.acore') to be launched...
[2012-02-17 11:22:26 - 项目名称] HOME is up on device 'emulator-5554'
[2012-02-17 11:22:26 - 项目名称] Uploading 项目名称.apk onto device 'emulator-5554'
[2012-02-17 11:22:33 - 项目名称] Installing 项目名称.apk...
[2012-02-17 11:23:17 - 项目名称] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2012-02-17 11:23:17 - 项目名称] Please check logcat output for more details.
[2012-02-17 11:23:17 - 项目名称] Launch canceled!
How to Fix?
Method 1:
in Eclipse, go to "Debug Configurations". You can find that in the drop-down under the "debug" icon. Select "target", and select a preferred emulator target to launch. Then under "additional emulator command line options," add this:
-partition-size 1024
Then CLOSE the emulator (and remove any devices), and click the debug icon, which will launch the preferred emulator you selected. This is important: Eclipse needs to launch the debugger, not AVD.
---this method from stackoverflow.com
Method 2:
right click on the project you want to run in eclipse -> Run->Run Configuration->Select Project->Target ->scroll down->add “-partition-size 1024” to additional Em options-> then run the project from eclipse。
PS: This method not always work well, so the third method is the best method.
Method 3:
Go to Preferences.Select “Launch”,ADD “-partition-size 1024” on the “Default emulator option”,Click “Apply”, and then enjoy it:)
更多相关文章
- android.support.v7包添加
- 【Android(安卓)开源项目】下拉刷新Android-PullToRefresh介绍
- adt-bundle-mac 配置Cocos2d-x 注意事项
- Android中的桌面快捷图标
- Android(安卓)拖动条(SeekBar)实例 附完整demo项目代码
- GitHub优秀的Android(安卓)开源项目(二)
- Android:An SDK Target must be specified
- Android(安卓)反编译代码和资源
- android studio Could not find any version that matches com.a