forked from qt-creator/qt-creator
Android: Handle cases where the project is unparsed.
Change-Id: If1757fff8ff458610dae8cbfcf561154c7d56753 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -167,6 +167,10 @@ bool AndroidDeployQtStep::init()
|
||||
emit addOutput(tr("Found old android folder in source directory. Qt 5.2 does not use that folder by default."), ErrorOutput);
|
||||
|
||||
m_targetArch = AndroidManager::targetArch(target());
|
||||
if (m_targetArch.isEmpty()) {
|
||||
emit addOutput(tr("No Android arch set by the .pro file."), ErrorOutput);
|
||||
return false;
|
||||
}
|
||||
m_deviceAPILevel = AndroidManager::minimumSDK(target());
|
||||
AndroidDeviceInfo info = AndroidConfigurations::instance().showDeviceDialog(project(), m_deviceAPILevel, m_targetArch);
|
||||
if (info.serialNumber.isEmpty()) // aborted
|
||||
|
||||
Reference in New Issue
Block a user