When the project uses Android: installlocation = "preferexternal ",
Installation Error: install_failed_container_error
Today I am debugging my program on n880. Sometimes the program reports that it cannot be installed. Use ADB install to display failure [install_failed_container_error]
View logcat display
07-10 14:05:50. 133: E/vold (79): ASEC File '/mnt/secure/ASEC/smdl2tmp1. ASEC' currently exists-Destroy it first! (Address already in use)
07-10 14:05:50. 143: E/packagehelper (670): failed to create secure container smdl2tmp1
07-10 14:05:50. 143: E/defcontainer (670): failed to create container smdl2tmp1
Apparently it is/mnt/secure/ASEC/smdl2tmp1. ASEC has a problem.
Because my mobile phone does not have root, I cannot directly access this file or use ADB shell to RM.
ADB su root display
C: \ Users \ luozhuang \ workspace \ word2text> ADB Shell
$ RM/mnt/secure/ASEC/smdl2tmp1. ASEC
Rm/mnt/secure/ASEC/smdl2tmp1. ASEC
Rm failed for/mnt/secure/ASEC/smdl2tmp1. ASEC, permission denied
$ Sudo RM/mnt/secure/ASEC/smdl2tmp1. ASEC
Sudo RM/mnt/secure/ASEC/smdl2tmp1. ASEC
Sudo: Permission denied
$ Su
Su
Su: Permission denied
$ Su Root
Su Root
Su: Permission denied
The solution is:
Connect your computer with a large USB capacity,
Go to the. android_secure directory under the SD card
(If the directory is a hidden directory, You need to select "show all files and folders" in "computer resource manager-tools-Folder option-View );
Find the "smdl2tmp1. ASEC" file and delete it.
Then launch the phone or unplug the data cable.
You can reinstall it.