Qt
  1. Qt
  2. QTBUG-47389

androiddeployqt: When androiddeployqt is used for a Qt Quick project then it will output warnings about not being able to resolve private QML imports

    Details

    • Type: Bug Bug
    • Status: Reported
    • Priority: P3: Somewhat important P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.0
    • Fix Version/s: None
    • Component/s: QtPorts: Android
    • Labels:
      None
    • Environment:

      Windows 7 host

      Description

      androiddeployqt: When androiddeployqt is used for a Qt Quick project then it will output warnings about not being able to resolve private QML imports. When creating a default Qt Quick Application in Qt Creator and then building it the following will be outputted during the androiddeployqt step:

      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
      
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        Gilmanov Ildar added a comment - - edited

        I confirm this behaviour. My OS: Kubuntu 15.10, Qt version: 5.5.1

        Show
        Gilmanov Ildar added a comment - - edited I confirm this behaviour. My OS: Kubuntu 15.10, Qt version: 5.5.1
        Hide
        Qt Support added a comment -

        This happens also when importing a Registered Type from C++.

        qmlRegisterType<Message>("com.mycompany.messaging", 1, 0, "Message");
        
        import com.mycompany.messaging 1.0
        

        leads to

        Warning: QML import could not be resolved in any of the import paths: com.mycompany.messaging
        
        Show
        Qt Support added a comment - This happens also when importing a Registered Type from C++. qmlRegisterType<Message>( "com.mycompany.messaging" , 1, 0, "Message" ); import com.mycompany.messaging 1.0 leads to Warning: QML import could not be resolved in any of the import paths: com.mycompany.messaging
        Hide
        Adderly Gonzalez added a comment -

        Confirmed behavior on Arch linux, qt 5.5.0 - 5.5.1.

        Show
        Adderly Gonzalez added a comment - Confirmed behavior on Arch linux, qt 5.5.0 - 5.5.1.
        Hide
        Roberto added a comment -

        Hello, I can confirm the same behavior: Mac OSX 10.11.3 (El Capitan), Qt version: 5.6.0-RC, Qt Creator version: 3.6.1 (Built on Feb 22 2016 01:08:45)

        Show
        Roberto added a comment - Hello, I can confirm the same behavior: Mac OSX 10.11.3 (El Capitan), Qt version: 5.6.0-RC, Qt Creator version: 3.6.1 (Built on Feb 22 2016 01:08:45)
        Hide
        Alexey added a comment -

        Can confirm on Windows 10, qt 5.5.1, Qt Creator 3.6.0.

        Show
        Alexey added a comment - Can confirm on Windows 10, qt 5.5.1, Qt Creator 3.6.0.
        Hide
        xxtrawurstt added a comment -

        Confirmed on Mac OSX 10.8.5, Qt 5.6.0, Qt Creator 3.6.1

        Show
        xxtrawurstt added a comment - Confirmed on Mac OSX 10.8.5, Qt 5.6.0, Qt Creator 3.6.1
        Hide
        Atef Azaiez added a comment - - edited

        Confirm same behavior: with "planets" and "Interactive Phone" projects from examples

        • Qt Creator 3.6.1 / Qt 5.6.0
        • Host Win10 x64
        • Android API22

        Edit: the warnings didn't prevent the app from running, but the problem was rather due the deep path of build folder

        Show
        Atef Azaiez added a comment - - edited Confirm same behavior: with "planets" and "Interactive Phone" projects from examples Qt Creator 3.6.1 / Qt 5.6.0 Host Win10 x64 Android API22 Edit: the warnings didn't prevent the app from running, but the problem was rather due the deep path of build folder
        Hide
        Ekkehard added a comment -

        confirm same behavior:
        Qt Creator 4.2.1
        Qt 5.8
        Android 6.0.1

        Show
        Ekkehard added a comment - confirm same behavior: Qt Creator 4.2.1 Qt 5.8 Android 6.0.1

          People

          • Assignee:
            Eskil Abrahamsen Blomfeldt
            Reporter:
            Andy Shaw
          • Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes