diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp index f858cacf5cc..4c970f6cd01 100644 --- a/src/tools/androiddeployqt/main.cpp +++ b/src/tools/androiddeployqt/main.cpp @@ -1882,6 +1882,12 @@ bool scanImports(Options *options, QSet *usedDependencies) QFileInfo info(path); + if (info.isDir()) { + if (options->verbose) + fprintf(stdout, " -- Skipping because path is a directory.\n"); + continue; + } + // The qmlimportscanner sometimes outputs paths that do not exist. if (!info.exists()) { if (options->verbose)