diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp index e762d43d76c..f1ddf254373 100644 --- a/src/tools/androiddeployqt/main.cpp +++ b/src/tools/androiddeployqt/main.cpp @@ -2357,7 +2357,7 @@ bool scanImports(Options *options, QSet *usedDependencies) if (path.isEmpty()) { fprintf(stderr, "Warning: QML import could not be resolved in any of the import paths: %s\n", qPrintable(object.value("name"_L1).toString())); - } else { + } else if (object.value("type"_L1).toString() == "module"_L1) { if (options->verbose) fprintf(stdout, " -- Adding '%s' as QML dependency\n", qPrintable(path)); @@ -2458,6 +2458,9 @@ bool scanImports(Options *options, QSet *usedDependencies) } options->qtDependencies[options->currentArchitecture].append(qmlImportsDependencies); + } else { + // We don't need to handle file and directory imports. Generally those should be + // considered as part of the application and are therefore scanned separately. } }