diff --git a/src/plugins/android/androidpackagecreationstep.cpp b/src/plugins/android/androidpackagecreationstep.cpp index 36847579870947e5ad74a23b6e5a8891be24f571..12a772a3c809d9cbe06234e8fc37e021bdaf275b 100644 --- a/src/plugins/android/androidpackagecreationstep.cpp +++ b/src/plugins/android/androidpackagecreationstep.cpp @@ -465,8 +465,9 @@ void AndroidPackageCreationStep::stripAndroidLibs(const QStringList & files, Abi { QProcess stripProcess; foreach (const QString &file, files) { - stripProcess.start(AndroidConfigurations::instance().stripPath(architecture) + QLatin1String(" --strip-unneeded ") + file); - if (!stripProcess.waitForFinished(-1)) + stripProcess.start(AndroidConfigurations::instance().stripPath(architecture), QStringList()<<QLatin1String("--strip-unneeded") << file); + stripProcess.waitForStarted(); + if (!stripProcess.waitForFinished()) stripProcess.terminate(); } }