Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.8-Android: When executing step "Build Android APK" Error Message

Qt 5.8-Android: When executing step "Build Android APK" Error Message

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 4 Posters 4.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    Hi; I'm using Qt 5.8. When I compile QtQuick Controls 2 app for Android, I get this error message:

      Android build platform: android-25
      Install to device: No
    qmlimportscanner: No such file or directory: "/home/Username/My"
    Invalid json output from qmlimportscanner.
    20:02:18: The process "/home/Username/Qt/5.8/android_x86/bin/androiddeployqt" exited with code 4.
    Error while building/deploying project QtMobileApp (kit: Android for x86 (GCC 4.9, Qt 5.8.0))
    When executing step "Build Android APK"
    20:02:18: Elapsed time: 00:04.
    

    What is reason of the problem? Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Looks strange... Do you have a space in the path of your project ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      I C 2 Replies Last reply
      3
      • SGaistS SGaist

        Hi,

        Looks strange... Do you have a space in the path of your project ?

        I Offline
        I Offline
        Ibrahim
        wrote on last edited by
        #3

        @SGaist thanks, yes, my project path has space like this: /home/Username/My Projects/QtMobileApp. I change the path like this: /home/Username/QtMobileApp and it's works! But I have never encountered such an error before.

        ekkescornerE 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Might be a limitation in qmlscanner.

          Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has ben found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • I Ibrahim

            @SGaist thanks, yes, my project path has space like this: /home/Username/My Projects/QtMobileApp. I change the path like this: /home/Username/QtMobileApp and it's works! But I have never encountered such an error before.

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @Ibrahim one thing I learned last 15 years using IDEs like Eclipse, QtCreator: never use spaces in pathes ;-)

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.8 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            3
            • SGaistS SGaist

              Hi,

              Looks strange... Do you have a space in the path of your project ?

              C Offline
              C Offline
              Chanchal Dass
              wrote on last edited by
              #6

              @SGaist Your suggestion helped me. tkanks...

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved