Browse Source

Projucer: Fixed an issue setting the fallback Android SDK path on Linux

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
a0b0a3e7bd
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      extras/Projucer/Source/Settings/jucer_StoredSettings.cpp

+ 3
- 2
extras/Projucer/Source/Settings/jucer_StoredSettings.cpp View File

@@ -409,11 +409,12 @@ static String getFallbackPathForOS (const Identifier& key, DependencyPathOS os)
} }
else if (key == Ids::androidSDKPath) else if (key == Ids::androidSDKPath)
{ {
return "${user.home}/Library/Android/sdk";
return (os == TargetOS::linux ? "${user.home}/Android/Sdk" :
"${user.home}/Library/Android/sdk");
} }
else if (key == Ids::androidNDKPath) else if (key == Ids::androidNDKPath)
{ {
return "${user.home}/Library/Android/sdk/ndk-bundle";
return getFallbackPathForOS (Ids::androidSDKPath, os) + "/ndk-bundle";
} }
else if (key == Ids::clionExePath) else if (key == Ids::clionExePath)
{ {


Loading…
Cancel
Save