Android: Fix default (Android Studio) Sdk path for Windows

By default, Android Studio on Windows puts the SDK into:
%LOCALAPPDATA%\Android\Sdk

Change-Id: Iadbb1cb5c15c6cdb581cbe07b2a0e83ac11e384e
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Alessandro Portale
2020-06-29 02:01:18 +02:00
committed by Assam Boudjelthia
parent 1f1dca9ec7
commit f1a5939e86

View File

@@ -308,7 +308,8 @@ FilePath AndroidSettingsWidget::getDefaultSdkPath() const
if (HostOsInfo::isWindowsHost()) {
return FilePath::fromString(
QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/Android/sdk");
QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation)
+ "/Android/Sdk");
}
return FilePath::fromString(