forked from qt-creator/qt-creator
Android: warn about wrong ABI in issues pane instead of general messages
Change-Id: I7b11b0b91f2843ee3d95d86b9afc772295dd6e94 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#include <projectexplorer/projectnodes.h>
|
#include <projectexplorer/projectnodes.h>
|
||||||
#include <projectexplorer/runconfiguration.h>
|
#include <projectexplorer/runconfiguration.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
|
#include <projectexplorer/taskhub.h>
|
||||||
#include <projectexplorer/toolchain.h>
|
#include <projectexplorer/toolchain.h>
|
||||||
|
|
||||||
#include <qtsupport/qtkitinformation.h>
|
#include <qtsupport/qtkitinformation.h>
|
||||||
@@ -212,12 +213,12 @@ bool AndroidDeployQtStep::init()
|
|||||||
auto selectedAbis = buildSystem()->extraData(buildKey, Constants::ANDROID_ABIS).toStringList();
|
auto selectedAbis = buildSystem()->extraData(buildKey, Constants::ANDROID_ABIS).toStringList();
|
||||||
|
|
||||||
if (!selectedAbis.contains(info.cpuAbi.first())) {
|
if (!selectedAbis.contains(info.cpuAbi.first())) {
|
||||||
Core::MessageManager::write(
|
TaskHub::addTask(DeploymentTask(
|
||||||
|
Task::Warning,
|
||||||
tr("Android: The main ABI of the deployment device (%1) is not selected! The app "
|
tr("Android: The main ABI of the deployment device (%1) is not selected! The app "
|
||||||
"execution or debugging might not work properly. Add it from Projects > Build > "
|
"execution or debugging might not work properly. Add it from Projects > Build > "
|
||||||
"Build Steps > qmake > ABIs.")
|
"Build Steps > qmake > ABIs.")
|
||||||
.arg(info.cpuAbi.first()),
|
.arg(info.cpuAbi.first())));
|
||||||
Core::MessageManager::WithFocus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_avdName = info.avdname;
|
m_avdName = info.avdname;
|
||||||
|
Reference in New Issue
Block a user