diff --git a/src/plugins/android/androiddeployqtstep.cpp b/src/plugins/android/androiddeployqtstep.cpp index 95af3c84651..cfca5335312 100644 --- a/src/plugins/android/androiddeployqtstep.cpp +++ b/src/plugins/android/androiddeployqtstep.cpp @@ -293,7 +293,8 @@ bool AndroidDeployQtStep::init() if (buildType() == BuildConfiguration::Release) m_androiddeployqtArgs.addArgs({"--release"}); - auto androidBuildApkStep = stepList()->firstOfType(); + const auto androidBuildApkStep = + buildConfiguration()->buildSteps()->firstOfType(); if (androidBuildApkStep && androidBuildApkStep->signPackage()) { // The androiddeployqt tool is not really written to do stand-alone installations. // This hack forces it to use the correct filename for the apk file when installing