1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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)
This commit is contained in:
Fredia Huya-Kouadio
2020-04-24 04:21:36 -07:00
parent 85ed2edc06
commit 328354f878

View File

@@ -1699,7 +1699,7 @@ public:
valid = false; valid = false;
} else { } else {
Error errn; 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) { if (errn != OK) {
err += TTR("Invalid Android SDK path for custom build in Editor Settings.") + "\n"; err += TTR("Invalid Android SDK path for custom build in Editor Settings.") + "\n";
valid = false; valid = false;