summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2020-04-24 04:21:36 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2020-04-24 04:21:36 -0700
commit328354f87874ece0ee3b0e6cd35e82b007e51b3c (patch)
treeb8b665b4c0f4d5ab64f1cbb220e30e326cc4d625 /platform/android
parent85ed2edc0685b7868813ee53d14964af9158eaf2 (diff)
Fix detection logic for the Android sdk path
The previous logic used the 'tools' directory within the Android sdk to validate it. That directory was recently deprecated and removed from the Android sdk folder (https://developer.android.com/studio/releases/sdk-tools)
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/export/export.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index 1eb1ee0d29..71febd3433 100644
--- a/platform/android/export/export.cpp
+++ b/platform/android/export/export.cpp
@@ -1699,7 +1699,7 @@ public:
valid = false;
} else {
Error errn;
- DirAccessRef da = DirAccess::open(sdk_path.plus_file("tools"), &errn);
+ DirAccessRef da = DirAccess::open(sdk_path.plus_file("platform-tools"), &errn);
if (errn != OK) {
err += TTR("Invalid Android SDK path for custom build in Editor Settings.") + "\n";
valid = false;