这是什么意思:失败[INSTALL_FAILED_CONTAINER_ERROR]?这是、什么意思、INSTALL_FAILED_CONTAINER_ERROR

2023-09-12 22:34:31 作者:▼  念旧° ㎜㎜

我尝试部署我的应用程序,有时甚至出现此错误:

I try to deploy my app and sometimes get this error:

Failure 
[INSTALL_FAILED_CONTAINER_ERROR] 

我试图谷歌,但没有发现什么错误意味着或什么的 由此造成。我通过IDE部署(的IntelliJ)的文件被复制到 设备到/数据/本地/ tmp目录(无根华为的Ideos,运行2.2), 但包管理器似乎并不喜欢它。在安装 APK,我已经删除从设备上的应用程序提前。我也发 肯定有在设备上的/数据/本地/ tmp中没有旧文件。仍然 现在我得到这个错误。 包装应与调试密钥签名,因为我通过部署 IDE通过运行的应用程序。

I tried to google it but don't find what the error means or what it's caused by. I deploy via IDE (IntelliJ) the file gets copied to the device to the /data/local/tmp (unrooted Huawei Ideos, running 2.2), but the package manager doesn't seem to like it. Before installing the apk, I already removed the app from the device beforehand. I also made sure there was no old file under /data/local/tmp on the device. Still I'm getting this error now. The package should be signed with the debug key, since I deploy via IDE by 'running' the app.

$ pwd 
/data/local/tmp 
$ ls -l 
-rw-rw-rw- shell    shell    17257686 2011-04-21 20:31 
com.company.shop 
$ pm install -r com.company.shop 
        pkg: com.company.shop 
Failure [INSTALL_FAILED_CONTAINER_ERROR]

这是什么意思,以及如何解决它?

What does it mean and how to resolve it?

修改/更新:

我能避免错误时不允许应用程序要在SD卡安装,设置

I can avoid the error when not allowing the app to be installed on sdcard, setting

android:installLocation="internalOnly"

在清单中。这是确定的发展,但对于生产,这不是我真正想要的 - 因为我的应用程序与17MB相当大;因此,我preFER它是在SD卡。 如何以往任何时候都能够在外部存储器安装不生根(因为这是我可以删除/mnt/secure/asec/smdl2tmp1.asec的唯一途径,这似乎是一个解决方案以及)。

in the manifest. It's ok for development, but for production, it's not really what I want - since my app is quite large with 17mb; therefore I prefer it to be on sdcard. How to ever be able to install it on the external memory without rooting (since this is the only way I could delete /mnt/secure/asec/smdl2tmp1.asec, which seems to be one solution as well).

推荐答案

这是乌拉圭回合的设备中删除该文件。

remove this file from ur device

/mnt/secure/asec/smdl2tmp1.asec

编辑/更新由马蒂亚斯林:

Edit/Update by Mathias Lin:

如果你没有root权限,您需要安装SD卡,并通过电脑将其删除:

If you don't have root access, you need to mount the sdcard and remove it via pc:

/.android_secure/smdl2tmp1.asec