Search Issue Tracker
Fixed
Fixed in 2022.2.12f1, 2023.1.0b9, 2023.2.0a4
Votes
13
Found in
2022.2.3f1
2023.1.0a25
2023.2.0a3
Issue ID
UUM-25965
Regression
Yes
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Debug Assertion Failed!" error when launching Windows Dedicated Server Player with Script Debugging enabled
- [Cinematic Studio][3D HDRP] Shader warnings thrown in the Console window when creating a new project with Cinematic Studio template
- Autoplay is triggered on Audio Assets when changing Asset Bundle tags
- Inspector Asset Bundle section has no indication for Variants, AssetBundle is written without a space, and Variant dropdown menu is available without setting the Asset Bundle first
- Graphics.DrawProceduralIndirect and Graphics.DrawProceduralNow silently dropped on DX12
baron_unity
Mar 15, 2023 20:47
Happens on 2022.2.7 and 2022.2.10 as well
Random_Peon
Feb 22, 2023 22:25
@DREAMCATCHERPRODUCITON
Hot damn, your workaround worked !
For anyone looking, here is my implementation : https://gist.github.com/vpfrimmer/49f9eb68db937c37cfea4de8afdab2df
It's dirty but it works.
masta-yoda
Feb 19, 2023 19:33
Also the same issue with android:screenOrientation="landscape" is being ignored or reverted by Unity Android build.
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.
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”.
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?
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+