I have to set Android SDK location in Preferences every single time after restarting my computer. I have the following setup:
-
Unity 2019.2.12f1 installed under C:\Program Files\Unity
-
Android and iOS support installed
-
No Unity Hub installed
-
Android SDK installed under D:\Android
-
Android NDK installed under D:\Android\android-ndk-r16b
Here are my environment variables:
and PATH:
When I start up Unity and open Preferences, the Android SDK is set to c:\android-sdk-windows and Android NDK is set to C:/android-sdk-windows/android-ndk-r16b. When I hit “Browse” for the SDK, a pop up notifies that “Unity has detected Android SDK at ‘D:\Android’. Do you want to use this SDK directory?”. The NDK is not automatically detected, and I have to manually browse the location. The locations I set are saved even if I close Unity Editor, but when I reboot the computer the settings are reset.