Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2020.1.0a15
Issue ID
1205401
Regression
No
[Android] Setting SDK path from InitializeOnLoad class constructor results in InvalidOperationException
Steps to reproduce:
1. Copy your Android SDK to another folder (must have 2 copies)
2. Add ANDROID_SDK_ROOT environmental variable and set its value to be the path to copied SDK
3. Open attached project
Expected:
This project has a script that should set Unity SDK path (inside Preferences window) to the same as in ANDROID_SDK_ROOT as soon as you open the project
Actual:
It does not change the SDK path inside Unity. Moreover, it throws an InvalidOperationException error in console.
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 UnityPlayer!profiling::ProfilerManager::DisposeProfilerRecorder+0xa when Player gets relaunched and exited after running for a long amount of time
- [Input system] When releasing one touch and pressing a second touch during a single frame, the second touch is not translated into UI event line OnPointerDown by the InputSystemUIInputModule
- URP Samples - multiple "Attempting to resolve render surface" and other errors appear when setting Quality pipeline asset
- OnDemandRendering.willCurrentFrameRender returns incorrect values in the Player when UnityEngine.Rendering.OnDemandRendering.renderFrameInterval is greater than 1
- Root motion is not reapplied when transitioning from an animation without root motion to an animation with root motion
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a19