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 android deployment
Qt 6.11 is out! See what's new in the release blog

Qt android deployment

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 4 Posters 4.0k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    Jojo64
    wrote on last edited by
    #1

    Hello,

    I'm new to develop android app with Qt on Windows. When I run the famous Hello World, to the AVD I created before, I got the message below. Any idea ?

    "Error while building/deploying project Essai (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
    When executing step "Deploy to Android device"

    Thanks in advance.

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

      Hi and welcome to devnet,

      You have to provide the full error message in order for us to be able to help you.

      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
      • J Offline
        J Offline
        Jojo64
        wrote on last edited by
        #3

        But it's the full message from the "Compile Output" window in Qt.

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

          Are you able to build your application ?

          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
          • J Offline
            J Offline
            Jojo64
            wrote on last edited by
            #5

            Yes the build was successfull. Could be something with the AVD used ?

            1 Reply Last reply
            0
            • timdayT Offline
              timdayT Offline
              timday
              wrote on last edited by timday
              #6

              I've been installing built apks to devices using the android SDK's abd from the commandline (not a fan of IDE's; oldschool, me). e.g:

              ~/download/android-sdk-linux/platform-tools/adb install deploy/bin/QtApp-debug.apk
              

              where deploy is the folder androiddeployqt built.

              Does that give you any more informative errors? (For example, I know it'll tell you an install fails when you try and install an ARM binary on an x86 emulator).

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Jojo64
                wrote on last edited by
                #7

                I think it is something with the AVD I created. Because I tried to create several AVD and one time, the deployment was ok. But now, I don't remember what I tried...

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Jojo64
                  wrote on last edited by
                  #8

                  Hi again,

                  I tried with a command line and got the following error msg.

                  C:\Android\Projets\build-Essai-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug\an
                  droid-build\bin>adb install deploy qtapp-debug.apk
                  [100%] /data/local/tmp/qtapp-debug.apk
                  pkg: deploy
                  ver: /data/local/tmp/qtapp-debug.apk
                  Failure [INSTALL_FAILED_INVALID_URI]

                  Any idea ?

                  1 Reply Last reply
                  0
                  • GTDevG Offline
                    GTDevG Offline
                    GTDev
                    wrote on last edited by
                    #9

                    Hi,
                    one possibility might also be that there is a problem with the AndroidManifest configuration.
                    For example a wrong invalid android package name (with invalid characters) or a minSDKVersion setting that does not support the device.

                    Maybe checking the manifest configuration helps to find the issue?

                    Senior Developer at Felgo - https://felgo.com/qt

                    Develop mobile Apps for iOS & Android with Qt
                    Felgo is an official Qt Technology Partner

                    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