android Installation error: INSTALL_FAILED_CONTAINER_ERROR错误的处理

本文介绍了解决Android项目中出现的“Installationerror:INSTALL_FAILED_CONTAINER_ERROR”错误的方法。该错误通常由于SD卡存储空间不足引起,即使设备已设置为使用内部存储。通过清理SD卡空间可以有效解决此问题。

在Android手机上调试项目时,运行项目,后台提示“Installation error: INSTALL_FAILED_CONTAINER_ERROR”,在网上查了资料,说这样处理:

 当工程使用android:installLocation="preferExternal" 时,某些时候会出现

Installation error: INSTALL_FAILED_CONTAINER_ERROR
解决办法:
修改为android:installLocation="auto" 即可。


但是搜索整个项目文件时,根本搜索不到“android:installLocation="preferExternal"”,因此不是这个原因。

经过对手机SD卡的文件进行清理,再次运行,成功。原因是SD卡存储空间不足。


但是手机的默认存储已经设置为:内部存储了,而且也有空间,为何还要使用SD卡的空间呢?



6:29:29 INFO: NVIDIA Container Runtime with Docker integration (Beta) - target: exec_command: scp /home/niko/.nvsdkm/replays/scripts/JetPack_6.2.1_Linux/NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP.sh jetson@[192.168.55.1]:~; ssh -t jetson@192.168.55.1 "set -o pipefail; ~/NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP.sh | sed 's/^/SDKM_INSTALL_ERROR /' && rm -f ~/NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP.sh" 16:29:40 INFO: NVIDIA Container Runtime with Docker integration (Beta) - target: ssh: connect to host 192.168.55.1 port 22: Connection timed out 16:29:40 INFO: NVIDIA Container Runtime with Docker integration (Beta) - target: lost connection 16:29:49 INFO: NVIDIA Container Runtime with Docker integration (Beta) - target: ssh: connect to host 192.168.55.1 port 22: Connection timed out 16:29:50 ERROR: NVIDIA Container Runtime with Docker integration (Beta) - target: [exec_command]: /bin/bash -c scp /home/niko/.nvsdkm/replays/scripts/JetPack_6.2.1_Linux/NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP.sh jetson@[192.168.55.1]:~; ssh -t jetson@192.168.55.1 "set -o pipefail; ~/NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP.sh | sed 's/^/SDKM_INSTALL_ERROR /' && rm -f ~/NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP.sh"; [error]: 16:29:50 INFO: NVIDIA Container Runtime with Docker integration (Beta) - target: [ Package PreInstall Finished with Error ] 16:29:50 INFO: NVIDIA Container Runtime with Docker integration (Beta) - target: [ NV_L4T_DOCKER_TARGET_POST_INSTALL_COMP Install took 20s ] 16:29:50 ERROR: NVIDIA Container Runtime with Docker integration (Beta) - target: command error code: 11 16:29:50 DEBUG: NVIDIA Container Runtime with Docker integration (Beta) - target: command terminated with error 16:29:50 SUMMARY: NVIDIA Container Runtime with Docker integration (Beta) - target: Installation failed. 16:29:50 DEBUG: CuDNN Runtime - target: using adapter to install NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP@JETSON_AGX_ORIN_TARGETS to /home/niko/nvidia/nvidia_sdk/JetPack_6.2.1_Linux_JETSON_AGX_ORIN_TARGETS 16:29:51 INFO: CuDNN Runtime - target: exec_command: ssh jetson@192.168.55.1 "df -B1 / | tail -1 | awk '{ printf \$4 }'" 16:30:01 ERROR: CuDNN Runtime - target: [exec_command]: /bin/bash -c ssh jetson@192.168.55.1 "df -B1 / | tail -1 | awk '{ printf \$4 }'"; [error]: exit status 255 16:30:01 INFO: CuDNN Runtime - target: Installing component 'CuDNN Runtime' (NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP) 16:30:01 INFO: CuDNN Runtime - target: NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP include 1 package 16:30:01 INFO: CuDNN Runtime - target: [ Package Install Started ] 16:30:01 INFO: CuDNN Runtime - target: target deb installer start to install 16:30:01 INFO: CuDNN Runtime - target: exec_command [target]: 16:30:01 INFO: CuDNN Runtime - target: ********************** 16:30:01 INFO: CuDNN Runtime - target: #!/bin/bash 16:30:01 INFO: CuDNN Runtime - target: set -e 16:30:01 INFO: CuDNN Runtime - target: export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 16:30:01 INFO: CuDNN Runtime - target: sudo mkdir -p /opt/nvidia/deb_repos 16:30:01 INFO: CuDNN Runtime - target: sudo chmod 777 /opt/nvidia/deb_repos 16:30:01 INFO: CuDNN Runtime - target: sudo rm -f /opt/nvidia/deb_repos/cudnn-local-tegra-repo-ubuntu2204-9.3.0_1.0-1_arm64.deb 16:30:01 INFO: CuDNN Runtime - target: ********************** 16:30:11 INFO: CuDNN Runtime - target: ssh: connect to host 192.168.55.1 port 22: Connection timed out 16:30:11 INFO: CuDNN Runtime - target: lost connection 16:30:21 INFO: CuDNN Runtime - target: ssh: connect to host 192.168.55.1 port 22: Connection timed out 16:30:21 ERROR: CuDNN Runtime - target: Prepare folders on target failed; [exec_command]: scp /home/niko/.nvsdkm/replays/scripts/JetPack_6.2.1_Linux/NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP.sh jetson@[192.168.55.1]:~; ssh -t jetson@192.168.55.1 "set -o pipefail; ~/NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP.sh | sed 's/^/SDKM_INSTALL_ERROR /' && rm -f ~/NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP.sh"; [deb_path]: /home/niko/Downloads/132/cudnn-local-tegra-repo-ubuntu2204-9.3.0_1.0-1_arm64.deb 16:30:21 INFO: CuDNN Runtime - target: [ Package Install Finished with Error ] 16:30:21 INFO: CuDNN Runtime - target: [ NV_L4T_CUDNN_RUNTIME_TARGET_POST_INSTALL_COMP Install took 20s ] 16:30:21 ERROR: CuDNN Runtime - target: command error code: 64 16:30:21 DEBUG: CuDNN Runtime - target: command terminated with error 16:30:21 SUMMARY: CuDNN Runtime - target: Failed to install debian package [target] 16:30:21 SUMMARY: CuDNN on Target - target: Depends on failed component
最新发布
01-09
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值