forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.14'
Change-Id: I842a7c7358fd0ff6d85c151806e440043914e09a
This commit is contained in:
@@ -1020,7 +1020,7 @@ FilePath AndroidConfig::defaultSdkPath()
|
||||
// Set default path of SDK as used by Android Studio
|
||||
if (Utils::HostOsInfo::isMacHost()) {
|
||||
return Utils::FilePath::fromString(
|
||||
QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/Android/sdk");
|
||||
QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/Library/Android/sdk");
|
||||
}
|
||||
|
||||
if (Utils::HostOsInfo::isWindowsHost()) {
|
||||
|
||||
@@ -118,14 +118,13 @@ bool AndroidSdkDownloader::extractSdk(const QString &jdkPath, const QString &sdk
|
||||
}
|
||||
}
|
||||
|
||||
QProcess *jarExtractProc = new QProcess();
|
||||
jarExtractProc->setWorkingDirectory(sdkExtractPath);
|
||||
QProcess jarExtractProc;
|
||||
jarExtractProc.setWorkingDirectory(sdkExtractPath);
|
||||
QString jarCmdPath(jdkPath + "/bin/jar");
|
||||
jarExtractProc->start(jarCmdPath, {"xf", m_sdkFilename});
|
||||
jarExtractProc->waitForFinished();
|
||||
jarExtractProc->close();
|
||||
jarExtractProc.start(jarCmdPath, {"xf", m_sdkFilename});
|
||||
jarExtractProc.waitForFinished();
|
||||
|
||||
return jarExtractProc->exitCode() ? false : true;
|
||||
return jarExtractProc.exitCode() ? false : true;
|
||||
}
|
||||
|
||||
bool AndroidSdkDownloader::verifyFileIntegrity()
|
||||
|
||||
Reference in New Issue
Block a user