We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46c8ff9 commit 48bd630Copy full SHA for 48bd630
source/AndroidResolver/src/PlayServicesResolver.cs
@@ -842,7 +842,9 @@ public static string AndroidSdkRoot {
842
// Unity 2019.3 added AndroidExternalToolsSettings which contains the Android SDK
843
// path so try to use that first.
844
var androidSdkRootPath = UnityCompat.AndroidExternalToolsSettingsSdkRootPath;
845
- if (!String.IsNullOrEmpty(androidSdkRootPath)) sdkPath = androidSdkRootPath;
+ if (!String.IsNullOrEmpty(androidSdkRootPath)) {
846
+ if (Directory.Exists(androidSdkRootPath)) sdkPath = androidSdkRootPath;
847
+ }
848
849
// Unity 2019.x added installation of the Android SDK in the AndroidPlayer directory
850
// so fallback to searching for it there.
0 commit comments