forked from qt-creator/qt-creator
Android: Access buildTargetSdk directly when possible
Change-Id: I1f9996919d982f8e54c595abaa44ed0e10a79422 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -234,8 +234,7 @@ bool AndroidBuildApkStep::init()
|
||||
return true;
|
||||
}
|
||||
|
||||
QString buildTargetSdk = AndroidManager::buildTargetSDK(target());
|
||||
if (buildTargetSdk.isEmpty()) {
|
||||
if (m_buildTargetSdk.isEmpty()) {
|
||||
emit addOutput(tr("Android build SDK not defined. Check Android settings."),
|
||||
OutputFormat::Stderr);
|
||||
return false;
|
||||
@@ -243,7 +242,7 @@ bool AndroidBuildApkStep::init()
|
||||
|
||||
QStringList arguments = {"--input", m_inputFile,
|
||||
"--output", outputDir,
|
||||
"--android-platform", AndroidManager::buildTargetSDK(target()),
|
||||
"--android-platform", m_buildTargetSdk,
|
||||
"--jdk", AndroidConfigurations::currentConfig().openJDKLocation().toString()};
|
||||
|
||||
if (m_verbose)
|
||||
|
Reference in New Issue
Block a user