这几天在测试一个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:)




更多相关文章

  1. android.support.v7包添加
  2. 【Android(安卓)开源项目】下拉刷新Android-PullToRefresh介绍
  3. adt-bundle-mac 配置Cocos2d-x 注意事项
  4. Android中的桌面快捷图标
  5. Android(安卓)拖动条(SeekBar)实例 附完整demo项目代码
  6. GitHub优秀的Android(安卓)开源项目(二)
  7. Android:An SDK Target must be specified
  8. Android(安卓)反编译代码和资源
  9. android studio Could not find any version that matches com.a

随机推荐

  1. Android一次申请多个动态权限
  2. Android(安卓)核心分析 之七------Servic
  3. 基本空间划分
  4. Android之从网络中获取数据并返回客户端
  5. This text field does not specify an in
  6. unity工程接入Android(安卓)sdk后真机测
  7. android中用XMPP Asmack获取用户朋友的pr
  8. android 拼音字母搜索联系人以及实现多选
  9. Android(安卓)SDK Manager:Failed to fetc
  10. Android(安卓)开发小技巧1: Button 点击区