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. Android Build in QT Creator will not install on phone
Forum Updated to NodeBB v4.3 + New Features

Android Build in QT Creator will not install on phone

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 295 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.
  • S Offline
    S Offline
    scottm1982
    wrote on 27 Mar 2025, 19:33 last edited by
    #1

    QT Creator 15
    QT 6.8.3 (just upgraded from 6.8.1 and did not resolve)
    Samsung Galaxy A35 5G

    The application at one point installed (and ran) fine on my phone. After adding embedded RCC (resources) to the project, the application would no longer install on my phone. However I am not certain it is related to the resources.

    I get the error (on my phone): "App not installed as package appears to be invalid."
    I can inspect the .apk archive in windows and everything seems to be correct. I suspected it could have been an issue with temp files on the phone so we bought another phone (same model as mine) to test on so I could factory reset prior to installing an updated version, and I got the same error.

    The application is very simple, there is a main.cpp and a couple C++ classes, but almost the entirety of it is in QML. The only resources I added were some images.

    So my question(s) are:

    1. Is there a way to get any more debug information from the phone installation process that would give me something to go on as to why it would be failing?
      1a. Is the only way to do the above by installing on an emulator environment (was hoping to avoid having to set that all up and just use my phone for testing)...
    2. are there any android-specific hooks I can (or need to) implement that would pertain to the install/uninstall issues I am seeing (is it something I need to do and/or am missing?)
    1 Reply Last reply
    0
    • S Offline
      S Offline
      scottm1982
      wrote on 27 Mar 2025, 20:04 last edited by
      #3

      the last thing I tried was self-signing the application, and it worked. hopefully this helps someone else who runs into this issue.

      J 1 Reply Last reply 27 Mar 2025, 20:14
      1
      • S Offline
        S Offline
        scottm1982
        wrote on 27 Mar 2025, 19:46 last edited by
        #2

        using kit: Android QT 6.8.3 Clang arm64-v8a

        1 Reply Last reply
        0
        • S Offline
          S Offline
          scottm1982
          wrote on 27 Mar 2025, 20:04 last edited by
          #3

          the last thing I tried was self-signing the application, and it worked. hopefully this helps someone else who runs into this issue.

          J 1 Reply Last reply 27 Mar 2025, 20:14
          1
          • S scottm1982
            27 Mar 2025, 20:04

            the last thing I tried was self-signing the application, and it worked. hopefully this helps someone else who runs into this issue.

            J Offline
            J Offline
            JonB
            wrote on 27 Mar 2025, 20:14 last edited by
            #4

            @scottm1982 That's good. Then to help other readers you can Mark as Correct your own final post.

            1 Reply Last reply
            1
            • S scottm1982 has marked this topic as solved on 27 Mar 2025, 20:26

            1/4

            27 Mar 2025, 19:33

            • Login

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