Android: Make sure that the path is using / for separators

When passing \ to Gradle it will strip these out, so by using / it
ensures that it is able to find the Android SDK directory fine.

Change-Id: I053f087438ade6c30d015abe00e9958beb90a947
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
Andy Shaw 2018-11-07 21:14:01 +01:00 committed by Jani Heikkinen
parent 1b0080a456
commit 1446cde812

View File

@ -707,7 +707,7 @@ bool readInputFile(Options *options)
return false; return false;
} }
options->sdkPath = sdkPath.toString(); options->sdkPath = QDir::fromNativeSeparators(sdkPath.toString());
if (options->androidPlatform.isEmpty()) { if (options->androidPlatform.isEmpty()) {
options->androidPlatform = detectLatestAndroidPlatform(options->sdkPath); options->androidPlatform = detectLatestAndroidPlatform(options->sdkPath);