Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Failure [INSTALL_FAILED_CONTAINER_ERROR]

Discussion in 'Android' started by Zaddo67, Nov 14, 2013.

  1. Zaddo67

    Zaddo67

    Joined:
    Aug 14, 2012
    Posts:
    489
    I was getting the following error when installing my apk to an AVM using "adb install myapp.apk":

    Failure [INSTALL_FAILED_CONTAINER_ERROR]

    It took 3 hours to find a solution. So I thought I would post the answer here and maybe save someone else the trouble.

    The soluiton is:
    1. Go to play settings, android tab
    2. Under other settings/Configuation/Install Location, set this to "Automatic"


    So simple when you know what to do.

    Most of the answers I googled tell you to change the manifest install location to auto: android:installLocation="auto"
    Which I kept doing in the XML file. But I am guessing this gets overriden by player preferences.
     
  2. Blackunknown

    Blackunknown

    Joined:
    Feb 18, 2014
    Posts:
    2
    Thank you for this! It solved my problem in under 1 minute saving me the 3 hours you sadly had to waste.
     
  3. Dirrogate

    Dirrogate

    Joined:
    Feb 18, 2014
    Posts:
    157
    Zaddo - Thank you!
     
  4. shrapnel92

    shrapnel92

    Joined:
    May 17, 2014
    Posts:
    10
    Thanks so much Zaddo, just found this after several days trouble shooting and it immediately fixed my problem!
     
  5. waleedmm

    waleedmm

    Joined:
    May 6, 2013
    Posts:
    5
    thanks, I've made those steps and finally I could install the application on android, but the application closes after loading. however, it works fine in desktop version.
     
  6. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    Does adb logcat complain something?
     
  7. niraj

    niraj

    Joined:
    Feb 14, 2013
    Posts:
    56
    @Zaddo67: Thank you so much for helping. It worked and my problem solved finally after a lots of search :)
     
  8. hanhnd76

    hanhnd76

    Joined:
    Oct 28, 2014
    Posts:
    1
  9. Raptcha911

    Raptcha911

    Joined:
    Sep 19, 2014
    Posts:
    24
    @Zaddo67 hey its not working for me...I set the install location to automatic, but the app is still not getting installed on my phone..please help!
     
  10. Drock128

    Drock128

    Joined:
    Oct 23, 2014
    Posts:
    2
    Nice! Thank you!
     
  11. Francis89074

    Francis89074

    Joined:
    Feb 5, 2015
    Posts:
    3
    Another thanks, lucky only wasted about 30 minutes until I found this post.
     
  12. DanjelRicci

    DanjelRicci

    Joined:
    Mar 8, 2010
    Posts:
    317
    This is not working for me, whatever Android device I use. The install location is already set to Automatic, also in the manifest there is nothing telling a preferred install location. I just updated all the possible Android SDKs and JDKs.
     
    Last edited: Feb 13, 2015
  13. Z3uS

    Z3uS

    Joined:
    Feb 25, 2015
    Posts:
    2
    Thanks a Lot....really..
     
  14. dCoding

    dCoding

    Joined:
    Sep 9, 2014
    Posts:
    26
    Thank you - this saved me a lot of wasted time!
     
  15. Nathyglobal

    Nathyglobal

    Joined:
    Apr 7, 2015
    Posts:
    1
    You are a life saver!:)
     
  16. Wolfdog

    Wolfdog

    Joined:
    Jun 22, 2014
    Posts:
    61
    Doesn't work for me :(
     
    SuperJones2020 likes this.
  17. bryan_A_K

    bryan_A_K

    Joined:
    Mar 19, 2015
    Posts:
    1
    This worked for me:
    Check your bundle indentifier,
    set bundle indentifier like this: com.your_company_name.your_product name
     
  18. Wolfdog

    Wolfdog

    Joined:
    Jun 22, 2014
    Posts:
    61
    Thanks, but my problem turned out to be related to my CPU architecture. I got a newer phone and now everything is fine.
     
  19. vmachacek

    vmachacek

    Joined:
    Jul 23, 2014
    Posts:
    4
    I searched for application not installed android unity and it did solved my problem.

    Thanks, you rock!
     
  20. my_dream

    my_dream

    Joined:
    Nov 22, 2013
    Posts:
    1
    Thanks, It solved my problem! :D
     
  21. khanm

    khanm

    Joined:
    Jan 13, 2016
    Posts:
    1
    Would you please explain more
    where to change "play settings, android tab".
     
  22. shazadmohammed

    shazadmohammed

    Joined:
    Mar 8, 2016
    Posts:
    3
    Click on File < Build Settings < Player Settings and select your device. You should come across a few tabs on the right.
     
  23. Hoxolotl

    Hoxolotl

    Joined:
    Sep 24, 2011
    Posts:
    7
    And you can add another soul saved. Thanks! :)
     
  24. seansteezy

    seansteezy

    Joined:
    Nov 28, 2013
    Posts:
    123
    Saved me too, thanks!!! So dumb...
     
  25. grimmy

    grimmy

    Joined:
    Feb 2, 2009
    Posts:
    409
    Doesn't work for me. Still says x App Not Installed :(
     
    mvsmvs likes this.
  26. Megaslash

    Megaslash

    Joined:
    Mar 22, 2017
    Posts:
    1
    Thanks a lot!!! I was getting the error "App not installed" on my device... Your solution helped me... Thanks
     
  27. peterspeters

    peterspeters

    Joined:
    Mar 28, 2017
    Posts:
    1
    still 2017, u are my hero thx a lot
     
  28. justinduy

    justinduy

    Joined:
    Dec 26, 2016
    Posts:
    7
    i did this ,but it doesn't to work for me .
     
  29. itsjustoneguy

    itsjustoneguy

    Joined:
    Jun 21, 2015
    Posts:
    8
    I don't know if this will help anybody else but what I did to fix the problem was uninstall an earlier copy of the app I created from my phone. Then it let me install the updated version I was trying to install.
     
  30. Obsurveyor

    Obsurveyor

    Joined:
    Nov 22, 2012
    Posts:
    277
    I figured this out on my own as well but yeah, removing the app from my phone and then installing would work when I would get "App not installed". I haven't figured out why yet, but I get this when I try to install Windows builds of my apk over the top of installed apk builds from my Mac and vice versa.
     
  31. singsaran

    singsaran

    Joined:
    May 19, 2018
    Posts:
    2
    Thanks a ton, Zaddo. You helped me at critical time. Had few minutes to deliver on a new pixel2x.
     
  32. ipus

    ipus

    Joined:
    Sep 18, 2017
    Posts:
    1
    Thanks so much, man, worked for me too.
     
  33. menushka_taplane

    menushka_taplane

    Joined:
    Jan 18, 2018
    Posts:
    1
    Got the same thing, found online to increase storage space of the emulator and that worked for me.
     
  34. Miguel-Cuellar

    Miguel-Cuellar

    Joined:
    Jul 9, 2018
    Posts:
    1
  35. lamaahmed166

    lamaahmed166

    Joined:
    Mar 8, 2019
    Posts:
    1
    Thank you loads!!!
     
  36. amanigmtt

    amanigmtt

    Joined:
    Nov 27, 2015
    Posts:
    3
    it doesn't work for me any other solution? Please
     
  37. actzeyoung

    actzeyoung

    Joined:
    Jul 25, 2019
    Posts:
    1
    The soluiton is:
    1. Go to play settings, android tab
    2. Under other settings/Configuation/Install Location, set this to "Automatic"

    where can i find this "play setting"?
     
    uncas_mog likes this.
  38. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    File->BuildSettings, on the lower left theres a player settings.

    but this one deoesnt work on my unity 2017.4 :(
     
  39. pratikbvmet

    pratikbvmet

    Joined:
    Oct 18, 2019
    Posts:
    3
    I am using Unity 2019.2.17 version and I have already set install location to automatic. but still not able to install app in android device. Any one have solution please help me.

    Thanks
     
  40. pratikbvmet

    pratikbvmet

    Joined:
    Oct 18, 2019
    Posts:
    3
    I was also facing same issue. Make sure you have install Android build support with Android SDK & NDK tool and Open JDK. I was facing this issue due to this.
     

    Attached Files:

  41. joasus12345

    joasus12345

    Joined:
    Dec 26, 2018
    Posts:
    14
    Wow thanks a lot!
    I did it and built and run but it didnt get auto installed, I copied the apk and manually installed, and after a while (and maybe a bit of hang) it installed!!!
     
  42. mouaadrio

    mouaadrio

    Joined:
    Apr 24, 2017
    Posts:
    1
    I set build location to auto, i did not work, but when i restarted my Tablet it wokred.
     
  43. parigha12

    parigha12

    Joined:
    Dec 10, 2019
    Posts:
    4
    set your java_home enviroment variable
     
  44. Dhruv_Shirdhankar

    Dhruv_Shirdhankar

    Joined:
    Mar 7, 2022
    Posts:
    2

    It is not solving my problem