Android: don't fail if device abi list is empty

If for some reason the device abi list is empty, don't stop the
deployment, let it continue and potentially fail later.

Amends c1512dce87.

Task-number: QTCREATORBUG-27103
Change-Id: I484fbd1ddb365d5e96686eebc3ba76032684e506
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Assam Boudjelthia
2022-03-14 18:46:15 +02:00
parent be0c2600f8
commit 03abdcda9f

View File

@@ -182,7 +182,8 @@ bool AndroidDeployQtStep::init()
return false;
}
if (!selectedAbis.isEmpty() && !dev->canSupportAbis(selectedAbis)) {
const bool abiListNotEmpty = !selectedAbis.isEmpty() && !dev->supportedAbis().isEmpty();
if (abiListNotEmpty && !dev->canSupportAbis(selectedAbis)) {
const QString error = tr("The deployment device \"%1\" does not support the "
"architectures used by the kit.\n"
"The kit supports \"%2\", but the device uses \"%3\".")