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 app doesn't run
Forum Update on Monday, May 27th 2025

Android app doesn't run

Scheduled Pinned Locked Moved Solved Mobile and Embedded
87 Posts 7 Posters 20.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.
  • ekkescornerE ekkescorner

    @mzimmers creating devices is for emulators. to connect via USB see https://t1p.de/ekkeManageDevices

    mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #33

    @ekkescorner oh, OK. I didn't realize that.

    So...any idea why my device is showing as disconnected?

    JoeCFDJ 1 Reply Last reply
    0
    • mzimmersM mzimmers

      @ekkescorner oh, OK. I didn't realize that.

      So...any idea why my device is showing as disconnected?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #34

      @mzimmers click Devices and show the tabs. I am debugging my app for Android now and have debug build. If you are building release, then it is Release above Run button on the lower left corner of Qt Creator.

      mzimmersM 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @mzimmers click Devices and show the tabs. I am debugging my app for Android now and have debug build. If you are building release, then it is Release above Run button on the lower left corner of Qt Creator.

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #35

        @JoeCFD
        Screenshot 2024-01-05 080058.png

        JoeCFDJ 1 Reply Last reply
        0
        • mzimmersM mzimmers

          @JoeCFD
          Screenshot 2024-01-05 080058.png

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #36

          @mzimmers is this device correct? Click the down arrow and you can see more.
          If yes, check if the cable is on. I had this issue this morning. The cable was off.

          mzimmersM 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            @mzimmers is this device correct? Click the down arrow and you can see more.
            If yes, check if the cable is on. I had this issue this morning. The cable was off.

            mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #37

            @JoeCFD it's the same device that worked for me last year. And it's indeed connected (I think it would have to be if it's auto-detected).

            JoeCFDJ 1 Reply Last reply
            0
            • mzimmersM mzimmers

              @JoeCFD it's the same device that worked for me last year. And it's indeed connected (I think it would have to be if it's auto-detected).

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #38

              @mzimmers Go to your computer and click this device to see if you are able to browse inside this device. For example, copy a file from this device to your computer. If yes, this means the device is connected to your computer. Otherwise, it is not connected.

              mzimmersM 1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @mzimmers Go to your computer and click this device to see if you are able to browse inside this device. For example, copy a file from this device to your computer. If yes, this means the device is connected to your computer. Otherwise, it is not connected.

                mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #39

                @JoeCFD tried that, and it sure appears to be connected:
                Screenshot 2024-01-05 082334.png
                I'm starting to wonder if there's something wrong with the SDK that Creator downloaded for me.

                JoeCFDJ 1 Reply Last reply
                0
                • mzimmersM mzimmers

                  @JoeCFD tried that, and it sure appears to be connected:
                  Screenshot 2024-01-05 082334.png
                  I'm starting to wonder if there's something wrong with the SDK that Creator downloaded for me.

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #40

                  @mzimmers yes, it is connected. Click the Android tab to see if anything is not set properly. I am now working with a Galaxy Tab A as well and do not have issues. Do you need to enable debugging in your Tablet? I remember you set it.

                  mzimmersM 1 Reply Last reply
                  1
                  • JoeCFDJ JoeCFD

                    @mzimmers yes, it is connected. Click the Android tab to see if anything is not set properly. I am now working with a Galaxy Tab A as well and do not have issues. Do you need to enable debugging in your Tablet? I remember you set it.

                    mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #41

                    @JoeCFD bingo. Now my device shows as ready to use.

                    Unfortunately, I'm now back to my original error:

                    Activity Manager threw the error: Error type 3
                    Error: Activity class {org.qtproject.example.weatherinfo/org.qtproject.qt.android.bindings.QtActivity} does not exist.
                    

                    And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.

                    How do these settings compare with yours?
                    Screenshot 2024-01-05 083441.png

                    JoeCFDJ 1 Reply Last reply
                    0
                    • mzimmersM mzimmers

                      @JoeCFD bingo. Now my device shows as ready to use.

                      Unfortunately, I'm now back to my original error:

                      Activity Manager threw the error: Error type 3
                      Error: Activity class {org.qtproject.example.weatherinfo/org.qtproject.qt.android.bindings.QtActivity} does not exist.
                      

                      And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.

                      How do these settings compare with yours?
                      Screenshot 2024-01-05 083441.png

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #42

                      @mzimmers I have JDK 11 and yours is 17. 17 is for Android 14. I do not think Galaxy has 14 now. Check the Android version in your tablet. Mine is 13.

                      mzimmersM 1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        @mzimmers I have JDK 11 and yours is 17. 17 is for Android 14. I do not think Galaxy has 14 now. Check the Android version in your tablet. Mine is 13.

                        mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on last edited by
                        #43

                        @JoeCFD mine appears to be 11.

                        When I change my JDK to 11, I get the following errors:
                        Screenshot 2024-01-05 084838.png
                        Do I need to dig up an earlier version of the SDK now? The Android Studio download page seems to have only the latest versions.

                        JoeCFDJ JKSHJ 2 Replies Last reply
                        0
                        • mzimmersM mzimmers

                          @JoeCFD mine appears to be 11.

                          When I change my JDK to 11, I get the following errors:
                          Screenshot 2024-01-05 084838.png
                          Do I need to dig up an earlier version of the SDK now? The Android Studio download page seems to have only the latest versions.

                          JoeCFDJ Offline
                          JoeCFDJ Offline
                          JoeCFD
                          wrote on last edited by JoeCFD
                          #44

                          @mzimmers click SDK Manager button to install Android 13 SDKs

                          mzimmersM 1 Reply Last reply
                          0
                          • JoeCFDJ JoeCFD

                            @mzimmers click SDK Manager button to install Android 13 SDKs

                            mzimmersM Offline
                            mzimmersM Offline
                            mzimmers
                            wrote on last edited by
                            #45

                            @JoeCFD
                            nobody home when I have JDK11 selected:
                            Screenshot 2024-01-05 163838.png

                            1 Reply Last reply
                            0
                            • mzimmersM mzimmers

                              @JoeCFD mine appears to be 11.

                              When I change my JDK to 11, I get the following errors:
                              Screenshot 2024-01-05 084838.png
                              Do I need to dig up an earlier version of the SDK now? The Android Studio download page seems to have only the latest versions.

                              JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote on last edited by
                              #46

                              @mzimmers said in Android app doesn't run:

                              Do I need to dig up an earlier version of the SDK now?

                              That's a bit tricky:

                              • The Latest version of the SDK Command-Line tools (v11+) requires JDK 17 now. In contrast, v10 of the Tools can work with JDK 11.
                              • Qt Creator expects you to use the SDK Manager to install the "Latest" version of the tools. So if you've upgrade those tools, you're expected to use JDK 17 too.

                              And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.

                              Hmm... that's weird. Sorry, I don't know if it's related to JDK 17 or not. (I haven't upgraded so I'm still using JDK 11 + SDK Command-Line Tools v10)

                              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                              mzimmersM 1 Reply Last reply
                              0
                              • JKSHJ JKSH

                                @mzimmers said in Android app doesn't run:

                                Do I need to dig up an earlier version of the SDK now?

                                That's a bit tricky:

                                • The Latest version of the SDK Command-Line tools (v11+) requires JDK 17 now. In contrast, v10 of the Tools can work with JDK 11.
                                • Qt Creator expects you to use the SDK Manager to install the "Latest" version of the tools. So if you've upgrade those tools, you're expected to use JDK 17 too.

                                And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.

                                Hmm... that's weird. Sorry, I don't know if it's related to JDK 17 or not. (I haven't upgraded so I'm still using JDK 11 + SDK Command-Line Tools v10)

                                mzimmersM Offline
                                mzimmersM Offline
                                mzimmers
                                wrote on last edited by mzimmers
                                #47
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • mzimmersM Offline
                                  mzimmersM Offline
                                  mzimmers
                                  wrote on last edited by
                                  #48

                                  Using Android Studio's SDK Manager, I was able to install Android 13.0 (Tiramisu), and command-line tools 10:
                                  Screenshot 2024-01-06 141139.png

                                  Screenshot 2024-01-06 140903.png
                                  and now my Android settings in Creator are totally whack:
                                  Screenshot 2024-01-06 141805.png
                                  I'm going around in circles here. Any ideas are appreciated.

                                  JoeCFDJ 2 Replies Last reply
                                  0
                                  • mzimmersM mzimmers

                                    Using Android Studio's SDK Manager, I was able to install Android 13.0 (Tiramisu), and command-line tools 10:
                                    Screenshot 2024-01-06 141139.png

                                    Screenshot 2024-01-06 140903.png
                                    and now my Android settings in Creator are totally whack:
                                    Screenshot 2024-01-06 141805.png
                                    I'm going around in circles here. Any ideas are appreciated.

                                    JoeCFDJ Offline
                                    JoeCFDJ Offline
                                    JoeCFD
                                    wrote on last edited by
                                    #49

                                    @mzimmers the SDKs from Android SDK Manager are not in your kit yet. Click SDK Manager button to add them.

                                    mzimmersM 1 Reply Last reply
                                    0
                                    • JoeCFDJ JoeCFD

                                      @mzimmers the SDKs from Android SDK Manager are not in your kit yet. Click SDK Manager button to add them.

                                      mzimmersM Offline
                                      mzimmersM Offline
                                      mzimmers
                                      wrote on last edited by
                                      #50

                                      @JoeCFD it doesn't work - there's nothing in the package window to add when I've selected JDK 11.

                                      ekkescornerE 1 Reply Last reply
                                      0
                                      • mzimmersM mzimmers

                                        @JoeCFD it doesn't work - there's nothing in the package window to add when I've selected JDK 11.

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

                                        @mzimmers I'm using JDK 17 for Qt 5.15.15 and 6.6

                                        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
                                        0
                                        • mzimmersM mzimmers

                                          Using Android Studio's SDK Manager, I was able to install Android 13.0 (Tiramisu), and command-line tools 10:
                                          Screenshot 2024-01-06 141139.png

                                          Screenshot 2024-01-06 140903.png
                                          and now my Android settings in Creator are totally whack:
                                          Screenshot 2024-01-06 141805.png
                                          I'm going around in circles here. Any ideas are appreciated.

                                          JoeCFDJ Offline
                                          JoeCFDJ Offline
                                          JoeCFD
                                          wrote on last edited by
                                          #52

                                          @mzimmers I am running Qt 6.6.1 on Linux with qtcreator 11.0.3 and do not have any issue with the settings.

                                          SDK path is not writable?

                                          mzimmersM 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