Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43573

[Android] androiddeployqt adds files from the project's folder to android-build/assets/--Added-by-androiddeployqt--/qml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.1
    • 5.4.0
    • QPA
    • None
    • Android
    • 9830f251fee207be04764d627c7a8a4902f7beaf

    Description

      1) Create a simple Qt Quick 2 app.

      2) Create a qml file with the following content:

      /// Agfdgdfgdf.qml

      import QtQuick 2.4
      import "../"
      Item{
      }
      

      Simply place that qml file in the project folder. Don't add it to the resource file, don't do anything else with it.

      Build the project and deploy it to the device:

          -- Appending dependency found by qmlimportscanner: C:/Qt/5.4/android_armv7/qml/QtQuick.2/plugins.qmltypes
          -- Appending dependency found by qmlimportscanner: C:/Qt/5.4/android_armv7/qml/QtQuick.2/qmldir
        -- Adding 'C:/PlayGround_GooglePlay/_t/untitled30' as QML dependency
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/Agfdgdfgdf.qml
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/deployment.pri
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/main.cpp
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/main.qml
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/MainForm.ui.qml
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/qml.qrc
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/sdadas/Dgnnadsafdfdfdfsd.qml
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/untitled30.pro
          -- Appending dependency found by qmlimportscanner: C:/PlayGround_GooglePlay/_t/untitled30/untitled30.pro.user
        -- Adding 'C:/Qt/5.4/android_armv7/qml/QtQuick/Window.2' as QML dependency
          -- Appending dependency found by qmlimportscanner: C:/Qt/5.4/android_armv7/qml/QtQuick/Window.2/libwindowplugin.so
      Reading dependencies from C:/Qt/5.4/android_armv7/qml/QtQuick/Window.2/libwindowplugin.so
      

      The whole contents of the project folder is added to android-build/assets/-Added-by-androiddeployqt-/qml .

      The line that might be causing all this mess seems to be the following import statement:
      import "../"

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              adrian.gabureanu Adrian Gabureanu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes