Spurious Unresolved QML Import Warnings
Unsolved
Mobile and Embedded
-
I get a bunch of "Warning: QML import could not be resolved in any of the import paths:" when I compile for android that I don't get when compiling for windows or iOS.
It doesn't seem to be impacting performance fortunately. I'm guessing it's related to https://bugreports.qt.io/browse/QTBUG-47389
Is there a good workaround for this? I try to keep my projects at 0 warnings so its easy to spot new ones as they're introduced.
-
There's no need to worry about these warnings. They are issued by the androiddeployqt tool. It tries to ensure that all qml dependencies are satisfied, but sometimes it doesn't succeed, specially if you're using custom qml components. It doesn't mean your code is wrong. It's just that the tool has its limitations.