forked from qt-creator/qt-creator
Android: Set proper environment for the avdmanager tool
Task-number: QTCREATORBUG-19988 Change-Id: If34b4ff570ed6d6fdbb91435913d9130feceb499 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -66,6 +66,8 @@ static bool avdManagerCommand(const AndroidConfig config, const QStringList &arg
|
||||
{
|
||||
QString avdManagerToolPath = config.avdManagerToolPath().toString();
|
||||
Utils::SynchronousProcess proc;
|
||||
auto env = AndroidConfigurations::toolsEnvironment(config).toStringList();
|
||||
proc.setEnvironment(env);
|
||||
Utils::SynchronousProcessResponse response = proc.runBlocking(avdManagerToolPath, args);
|
||||
if (response.result == Utils::SynchronousProcessResponse::Finished) {
|
||||
if (output)
|
||||
|
Reference in New Issue
Block a user