Search Issue Tracker
Not Reproducible
Votes
2
Found in
2018.4
2019.4
2020.3
2020.3.0f1
2021.1
2021.2
Issue ID
1324073
Regression
No
[Android] Application.systemLanguage returns invalid language when at least one language is added to Plugins/Android/res/values
Reproduction steps:
1. Download and open the attached project "1324073.zip"
2. Build and install on Android
3. Change the system language to English
4. Open the application and investigate the logged message
5. Close and kill the application
6. Change the system language to Czech
7. Open the application and investigate the logged message
Expected result: "Language From Application.systemLanguage: Czech" is logged
Actual result: "Language From Application.systemLanguage: English" is logged
Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.3.3f1, 2021.1.2f1, 2021.2.0a12
Notes:
The behavior is correct if Plugins/Android/res folder is removed
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
- Crash on memcpy when importing lightmaps after GI bake
- NullReferenceException is thrown when creating the TextMeshPro component and entering the Play Mode without importing TMP Essentials
- [Linux] Player crash on Shader::SRPBatcherInfoSetup when opening player build
- [Android] FPS does not match the targeted FPS when it is set with Application.targetFrameRate
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
Resolution Note (2021.2.X):
The latest Unity version no longer supports putting res folder to Plugins/Android. Now you should be using Android libraries (.aar or library projects).
I've tried using that with given res folder and I could not reproduce this bug that way. Android libraries are supported in all current Unity versions.