I just upgraded from 5.4.1 to 5.5.0 today. But when I build my android project I get these lines of warning in compile output:
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: HelperWidgets
What is this? My project compiles without any warnings in the previous version.
Local Directory Imports Any QML file on the local file system can import a local directory as using an import statement that refers to the directory's absolute or relative file system path, enabling the file to use the object types defined within that directory.
An import statement allows clients to tell the engine which modules, JavaScript resources and component directories are used within a QML document. The types which may be used within a document depends on which modules, resources and directories are imported by the document.
The Qt project has a bugtracker where you should have searched for your issue.
This bug was reported a few days before your post here.
My conclusion: This issue is a bug in at least Qt 5.5.0 and 5.5.1.
Edit: The issue is still there with Qt 5.9. I never had any real problem here, and the fact that the priority in the issue trakcer is P3 indicates that this is nothing else but an incorrect warning which can simply be ignored.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With