Android安装应用程序出现“INSTALL_FAILED_CONTAINER_ERROR”错误的解决办法

通过手机安装应用提示“应用未安装”。用豌豆荚、apkinstaller安装也都装不上。logcat没找到错误原因。最后用adb install发现了错误:
failed 【INSTALL_FAILED_CONTAINER_ERROR】。 貌似在android2.2以后才会遇到这个问题。

遇到这个问题解决办法是:
1. 数据线连接电脑,以“磁盘驱动器”方式连接。
2. 进入sdcard下的.android_secure目录(需要使用第三方的资源管理器)
3. 删除该目录下的smdl2tmp1.asec文件。

如果该目录没有使用smdl2tmp1.asec文件,adb shell执行如下命令:
rm /mnt/secure/asec/smdl2tmp1.asec
再看了一遍logcat,终于发现了fail信息:

D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> smdl2tmp1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.flightmanager.view-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.hiapk.market-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.rovio.angrybirds-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.baidu.BaiduMap-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.eassol.android-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.tudou.android-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.droidhen.fruit-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.icontact.dazhong.ui-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> cn.com.fetion-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> uc.ucdl-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.dragon.android.pandaspace-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.MetalStorm2-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.tencent.qqpim-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> youcan.reader-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.caing.news-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.bf.sgs-1
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> uavana.gmaps-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.blovestorm-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.hiapk.marketpho-2
D/VoldCmdListener(   86): CommandListener::AsecCmd::runCommand -> com.google.android.stardroid-1
I/PackageHelper( 2809): Size of container 4 MB 2831852 bytes
E/PackageHelper( 2809): Failed to create secure container smdl2tmp1
E/DefContainer( 2809): Failed to create container smdl2tmp1
D/VoldCmdListener(   86): volume aseced /mnt/sdcard
D/MountService(  174): getAsecVolumeState :: result = mounted
D/MountService(  174):  :::: createSecureContainer :: id = smdl2tmp1, sizeMb = 4, fstype = fat, key
= a105d52f864a3aaccb97848a73dc3b5b, ownerUid = 10048
D/VoldCmdListener(   86): asec create smdl2tmp1 4 fat {} 10048
E/Vold    (   86): ASEC file '/mnt/secure/asec/smdl2tmp1.asec' currently exists - destroy it first!
(Address already in use)
W/Vold    (   86): Returning OperationFailed - no handler for errno 98
I/ActivityManager(  174): No longer want com.wd.AndroidDaemon (pid 2467): hidden #16
I/KeyInputQueue(  174): Enqueueing touch event0
I/WindowManager(  174): Read next event 0
I/WindowManager(  174): Delivering pointer 0 > Window{4a6ed918 com.android.packageinstaller/com.andr
oid.packageinstaller.InstallAppProgress paused=false}
I/KeyInputQueue(  174): Enqueueing touch event1
I/WindowManager(  174): Read next event 1
I/WindowManager(  174): Delivering pointer 1 > Window{4a6ed918 com.android.packageinstaller/com.andr
oid.packageinstaller.InstallAppProgress paused=false}
I/InstallAppProgress( 2794): Finished installing com.sina.weibo
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值