forked from qt-creator/qt-creator
Android: Rework sdkTargets() to cache the output of adb
Also rename/change highestAvailablePlatform to highestAvailableSdk. This fixes a bug reported on irc, where the lists for sdk and ndk were different and the highestAvailablePlatform was not available as in the sdk. Change-Id: I17fec9e8ce1913e933ddcf8eaa21d6bb6e14c5be Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
@@ -620,7 +620,7 @@ bool AndroidManager::createAndroidTemplatesIfNecessary(ProjectExplorer::Target *
|
||||
return false;
|
||||
}
|
||||
|
||||
updateTarget(target, AndroidConfigurations::instance().sdkTargets(minApiLevel).at(0));
|
||||
updateTarget(target, sdks.first());
|
||||
QStringList apps = availableTargetApplications(target);
|
||||
if (!apps.isEmpty())
|
||||
setTargetApplication(target, apps.at(0));
|
||||
|
||||
Reference in New Issue
Block a user