Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

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

    Mobile and Embedded
    4
    6
    4259
    Loading More Posts
    • 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
      Ibrahim last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 3
        • I
          Ibrahim @SGaist last edited by

          @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.

          ekkescorner 1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • ekkescorner
              ekkescorner Qt Champions 2016 @Ibrahim last edited by

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

              ekke
              Qt Champion
              mobile business apps
              Qt Quick Controls 2 (Material style) for Android / iOS

              1 Reply Last reply Reply Quote 3
              • C
                Chanchal Dass @SGaist last edited by

                @SGaist Your suggestion helped me. tkanks...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post