android调试的时候出错

[2012-09-27 08:42:01 - Demo_Test] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2012-09-27 08:42:01 - Demo_Test] Please check logcat output for more details.
[2012-09-27 08:42:01 - Demo_Test] Launch canceled!

调试的时候用的是真机,出现上述错误

起因:加载了一个百度地图的JAR包(可能是JAR包大,内存空间不足造成的!)

此时更改manifest配置文件,添加属性如下:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.hongbin.example"
    android:versionCode="1"
    android:versionName="1.0"
    android:installLocation="preferExternal" >

首选项目安装到SD卡上,成功解决

猜你喜欢

转载自chenhongbinjs.iteye.com/blog/1686240