title: QML import error
body: <p>I wanted to create a new QML type from C++ but I encountered a problem in the process, which I couldn't resolve. I have a class in C++ - <code>"Mytype"</code> - which has been registered with the QML Type System via <code>qmlregistertype</code> function. </p>
  
  <p>So far so good. The class was correctly registered and the application run fine on desktop environments, everything worked fine. However, when I built and deployed the application to an Android device, I received the following error: </p>
  
  <blockquote>
    <p><strong>Warning: QML import could not be resolved in any of the import paths: Mytype</strong></p>
  </blockquote>
  
  <p>What does this error talk about? What could be the reason for this error? How can I fix it? Please, help me. Here follows a simplified code example:</p>
  
  <blockquote>
    <p>c++:</p>
  </blockquote>
  
  <pre><code>    #include &lt;QApplication&gt;
      #include &lt;QQmlApplicationEngine&gt;
      #include "mytype.h"
  
  int main(int argc, char *argv[])
  {
      QApplication app(argc, argv);
  
      qmlRegisterType&lt;Mytype&gt;("mytype", 1, 0, "Mytype");
  
      QQmlApplicationEngine engine;
      engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
  
      return app.exec();
  }
  </code></pre>
  
  <blockquote>
    <p>qml:</p>
  </blockquote>
  
  <pre><code>import mytype 1.0;
  ...
  Mytype {
      id: my_type;
      ...
  }
  </code></pre>