安装错误:INSTALL_FAILED_CONTAINER_ERROR [英] Installation error: INSTALL_FAILED_CONTAINER_ERROR

查看:2935
本文介绍了安装错误:INSTALL_FAILED_CONTAINER_ERROR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 在运行code,
    安装错误:INSTALL_FAILED_CONTAINER_ERROR发生结果
    请检查logcat的输出获取更多信息。
    启动取消!


  • 我只是尝试通过改变来解决这些错误
    安卓的installLocation =preferExternal进
    安卓的installLocation =自动


  • 但是现在仍然错误依然same.So的APK无法安装在模拟器。

AndroidMainfest.xml:

 <清单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
 包=com.gems.android
 安卓版code =1
 机器人:=的versionName1.0
 安卓的installLocation =自动
  >

存储:

LogCat中:

  E / memtrack(1386):无法加载memtrack模块(没有这样的文件或目录)
 E / android.os.Debug(1386):加载失败memtrack模块:-2
 D / AndroidRuntime(1386):在主入口com.android.commands.pm.Pm
 W / ActivityManager(381):无内容提供商找到许可撤销:文件:///data/local/tmp/GEMS.apk
 E /沃尔德(47):错误创建镜像文件(只读文件系统)
 E /沃尔德(47):ASEC镜像文件创建失败(只读文件系统)
 W /沃尔德(47):返回OperationFailed - 没有处理程序错误号30
 E / PackageHelper(640):无法创建安全容器smdl2tmp1
 E / DefContainer(640):无法创建容器smdl2tmp1
 W / ActivityManager(381):无内容提供商找到许可撤销:文件:///data/local/tmp/GEMS.apk


  • 在SD卡可用内存也是483 MB。

  • 如果有人知道如何解决这些回复me.Thank你。<​​/ li>

解决方案

这是因为


  

ASEC镜像文件创建失败(只读文件系统)


安装,重新安装,CHMOD为SD卡也不会有帮助 - 至少它没有为我


  C:\\用户\\&lt;使用者名称&gt; \\ AppData的\\本地\\ Android的\\ SDK \\平台工具&gt;亚行外壳
根@通用:/#安装邻重新挂载RW /存储/ SD卡
安装邻重新装入RW /存储/ SD卡
根@通用:/#安装邻重新挂载RW的/ mnt / SD卡
安装邻重新装入RW的/ mnt / SD卡
根@通用:/#搭配chmod -R 777到/ mnt /安全/ ASEC
搭配chmod -R 777到/ mnt /安全/ ASEC
无法和chmod到/ mnt /安全/ ASEC:只读文件系统


不过了无法和chmod到/ mnt /安全/ ASEC:只读文件系统

亚行重置后,按照这里的一些堆栈溢出接受的答案,也许是解决方案的一部分,但它并没有帮助过。由于没有帮助删除 SD卡/ .android_secure / smdl2tmp1.asec 通过Windows资源管理器的安装被用作对仿真器和SD卡中的图片 sdcard.img 文件(文件后,< STRONG>可位于C:\\用户\\ .android \\ AVD \\ .avd )与ImDisk程序(请确保您有theright选项卡上的图像文件访问 - >虚拟磁盘驱动器存取映像文件直接单选选中)。

什么即时帮助从Android模拟器上的设置应用程序:存储 - >删除SD卡。如果您选择了英特尔凌动在AVD设置仿真器的CPU,您可能需要将其更改为ARM至少暂时通过模拟器来清除SD,因为据说 - SD格式上经常出现故障仿真的英特尔Atom处理器。

希望帮助!

  • When running the code, Installation error:INSTALL_FAILED_CONTAINER_ERROR Occurred
    Please check logcat output for more details. Launch canceled!

  • I just try to solve these Error by changing the android:installLocation="preferExternal" into android:installLocation="auto"

  • But still now Error remains the same.So that apk couldn't be installed in Emulator.

AndroidMainfest.xml:

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

Storage:

LogCat:

E/memtrack(1386): Couldn't load memtrack module (No such file or directory)
 E/android.os.Debug(1386): failed to load memtrack module: -2
 D/AndroidRuntime(1386)  : Calling main entry com.android.commands.pm.Pm
 W/ActivityManager(381)  : No content provider found for permission revoke: file:///data/local/tmp/GEMS.apk
 E/Vold(47)              : Error creating imagefile (Read-only file system)
 E/Vold(47)              : ASEC image file creation failed (Read-only file system)
 W/Vold(47)              : Returning OperationFailed - no handler for errno 30
 E/PackageHelper(640)    : Failed to create secure container smdl2tmp1
 E/DefContainer(640)     : Failed to create container smdl2tmp1
 W/ActivityManager(381)  : No content provider found for permission revoke: file:///data/local/tmp/GEMS.apk

  • Available Memory in SD Card is also 483 MB.
  • If anybody know how to solve these reply me.Thank you.

解决方案

This is because of

ASEC image file creation failed (Read-only file system)

Mounting, remounting, chmod for SDcard won't help either - at least it didn't for me

C:\Users\<User Name>\AppData\Local\Android\sdk\platform-tools>adb shell
root@generic:/ # mount -o remount rw /storage/sdcard
mount -o remount rw /storage/sdcard
root@generic:/ # mount -o remount rw /mnt/sdcard
mount -o remount rw /mnt/sdcard
root@generic:/ # chmod -R 777 /mnt/secure/asec
chmod -R 777 /mnt/secure/asec
Unable to chmod /mnt/secure/asec: Read-only file system

Still got Unable to chmod /mnt/secure/asec: Read-only file system

Adb reset, as per some accepted answers here on Stack Overflow, was perhaps a part of solution, but it didn't help too. As neither helped deleting SDCARD/.android_secure/smdl2tmp1.asec via Windows explorer after mounting sdcard.img file(file that is used as an image for SD card on emulator and can be located in C:\Users\.android\avd\.avd ) with ImDisk program(please make sure you have on theright tab "Image file access" -> "Virtual disk drive accesses image file directly" radio checked).

What instantly helped was from Android Settings app on emulator: "Storage"->"Erase SD card". If you selected Intel Atom as emulator CPU in AVD settings, you may have to change it to ARM at least temporarily to erase the SD via emulator, since reportedly - SD formatting fails on emulated Intel Atom CPU quite often.

Hope that helps!

这篇关于安装错误:INSTALL_FAILED_CONTAINER_ERROR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆