Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to install apk to SD card
    primarykey
    data
    text
    <p>I'm unable to install an application to virtual devices (API's 10 and 17) when I specify preferExternal in the AndroidManifest.xml file.</p> <p>Console output:</p> <pre><code>[2013-06-11 12:01:51 - MyApp] Android Launch! [2013-06-11 12:01:51 - MyApp] adb is running normally. [2013-06-11 12:01:51 - MyApp] Performing com.mydomain.MyApp.activities.ChannelActivity activity launch [2013-06-11 12:01:51 - MyApp] Automatic Target Mode: Preferred AVD 'NexusS_API17' is available on emulator 'emulator-5554' [2013-06-11 12:01:51 - MyApp] Uploading MyApp.apk onto device 'emulator-5554' [2013-06-11 12:01:55 - MyApp] Installing MyApp.apk... [2013-06-11 12:01:59 - MyApp] Installation error: INSTALL_FAILED_CONTAINER_ERROR [2013-06-11 12:01:59 - MyApp] Please check logcat output for more details. [2013-06-11 12:01:59 - MyApp] Launch canceled! </code></pre> <p>LogCat output:</p> <pre><code>06-11 10:01:57.385: W/ActivityManager(302): No content provider found for permission revoke: file:///data/local/tmp/MyApp.apk 06-11 10:01:57.755: I//system/bin/make_ext4fs(32): Creating filesystem with parameters: 06-11 10:01:57.755: I//system/bin/make_ext4fs(32): Size: 2158592 06-11 10:01:57.755: I//system/bin/make_ext4fs(32): Block size: 4096 06-11 10:01:57.755: I//system/bin/make_ext4fs(32): Blocks per group: 32768 06-11 10:01:57.755: I//system/bin/make_ext4fs(32): Inodes per group: 144 06-11 10:01:57.755: I//system/bin/make_ext4fs(32): Inode size: 256 06-11 10:01:57.766: I//system/bin/make_ext4fs(32): Journal blocks: 0 06-11 10:01:57.775: I//system/bin/make_ext4fs(32): Label: 06-11 10:01:57.775: I//system/bin/make_ext4fs(32): Blocks: 527 06-11 10:01:57.775: I//system/bin/make_ext4fs(32): Block groups: 1 06-11 10:01:57.785: I//system/bin/make_ext4fs(32): Reserved block group size: 7 06-11 10:01:57.795: I//system/bin/make_ext4fs(32): Created filesystem with 11/144 inodes and 23/527 blocks 06-11 10:01:57.846: I/Vold(32): Filesystem (ext4) formatted OK 06-11 10:01:57.855: E/Vold(32): ASEC FAT mount failed (No such device) 06-11 10:01:57.926: E/PackageHelper(1091): Failed to create secure container smdl2tmp1 06-11 10:01:57.926: E/DefContainer(1091): Failed to create container smdl2tmp1 06-11 10:01:57.937: W/ActivityManager(302): No content provider found for permission revoke: file:///data/local/tmp/MyApp.apk </code></pre> <p>It looks like people have encountered a similar problem with <a href="http://www.androidpolice.com/2011/04/19/fixing-the-couldnt-install-on-usb-storage-or-sd-card-problem-on-android/" rel="nofollow">smdl2tmp1</a> in the past, but my AVD's don't have the smdl2tmp1.asec file. I've tried a number of things:</p> <ol> <li>Recreating AVD's.</li> <li>Unmounting /mnt/sdcard with umount in ADB (I get device busy).</li> <li>Rebuilding development environment on another computer with a fresh install of ADT 22.</li> </ol> <p>Does anyone have any suggestions for how I can get my app to install on the external sdcard? It runs fine when installing to internal storage.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload