Search Issue Tracker


Fixed in 2022.2.12f1, 2023.1.0b9, 2023.2.0a4



Found in




Issue ID




Android Install Location changes when Exporting Project



Reproduction steps:
1. Open the attached project “BugRepro”
2. Open “Build Settings > Player Settings > Other Settings” and change Install Location to Automatic
3. In Build Settings tick the Export Project checkbox and Export the Project
4. Open the exported Project’s folder and navigate to “launcher/src/main/AndroidManifest.xml”
5. Observe the Contents of the XML file

Expected result: android:installLocation value is set to “auto”
Actual result: android:installLocation value is set to “preferExternal”

Reproducible with: 2022.2.0a16, 2022.2.3f1, 2023.1.0a25
Not reproducible with: 2020.3.43f1, 2021.3.17f1, 2022.2.0a15

Reproducible on: macOS 12.6 (Intel)

Comments (7)

  1. baron_unity

    Mar 15, 2023 20:47

    Happens on 2022.2.7 and 2022.2.10 as well

  2. Random_Peon

    Feb 22, 2023 22:25

    Hot damn, your workaround worked !

    For anyone looking, here is my implementation :
    It's dirty but it works.

  3. masta-yoda

    Feb 19, 2023 19:33

    Also the same issue with android:screenOrientation="landscape" is being ignored or reverted by Unity Android build.

  4. DreamcatcherProduciton

    Feb 15, 2023 17:43

    Workaround is to use IPostGenerateGradleAndroidProject (see Unity docs) and find the file "YOUR_PROJECT_ROOT_FOLDER\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main\AndroidManifest.xml" and modify the "android:installLocation" value by setting it to "auto" then saving the file all within the OnPostGenerateGradleAndroidProject function. That should force it to work.

  5. foxytocin

    Feb 14, 2023 19:45

    Also found in version 2022.2.6f1. Can't toggle to drop-down-menu of 'Install Location' (stucks on 'Automatic') but android:installLocation value is not set to “auto”.

  6. seyyiddogan

    Feb 13, 2023 16:32

    Hello, I'm having the exact same issue. Do you have a workaround while we wait for a fix?

  7. Microtek

    Jan 31, 2023 08:59

    I'm building on windows and not exporting the project and i get the same behaviour outlined here with all versions 2022.2.0+

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.