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

Android app doesn't run

Scheduled Pinned Locked Moved Solved Mobile and Embedded
87 Posts 7 Posters 20.8k 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.
  • M mzimmers
    5 Jan 2024, 15:27

    @JKSH thanks for the warning about the manifest editor -- it looks like TQC has painted itself into a corner on this one.

    I was going to try your suggestion, but now I have a different problem: my Android device shows as "disconnected" and I can't figure out what to do about this.

    E Offline
    E Offline
    ekkescorner
    Qt Champions 2016
    wrote on 5 Jan 2024, 15:49 last edited by
    #28

    @mzimmers said in Android app doesn't run:

    my Android device shows as "disconnected"

    connected via wifi or via usb cable ?

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

    M 1 Reply Last reply 5 Jan 2024, 15:50
    0
    • M mzimmers
      5 Jan 2024, 15:27

      @JKSH thanks for the warning about the manifest editor -- it looks like TQC has painted itself into a corner on this one.

      I was going to try your suggestion, but now I have a different problem: my Android device shows as "disconnected" and I can't figure out what to do about this.

      J Offline
      J Offline
      JoeCFD
      wrote on 5 Jan 2024, 15:50 last edited by JoeCFD 1 May 2024, 15:51
      #29

      @mzimmers Click Manage Kits->Devices
      select your device in Device combobox since your device may not be the default one.
      Then click Debug above Run button and select your connected device.

      M 1 Reply Last reply 5 Jan 2024, 15:56
      0
      • E ekkescorner
        5 Jan 2024, 15:49

        @mzimmers said in Android app doesn't run:

        my Android device shows as "disconnected"

        connected via wifi or via usb cable ?

        M Offline
        M Offline
        mzimmers
        wrote on 5 Jan 2024, 15:50 last edited by
        #30

        @ekkescorner USB cable. I deleted that device, and am trying to create a new one, but it keeps trying to make an emulator, not a "real" Android device.

        E 1 Reply Last reply 5 Jan 2024, 15:55
        0
        • M mzimmers
          5 Jan 2024, 15:50

          @ekkescorner USB cable. I deleted that device, and am trying to create a new one, but it keeps trying to make an emulator, not a "real" Android device.

          E Offline
          E Offline
          ekkescorner
          Qt Champions 2016
          wrote on 5 Jan 2024, 15:55 last edited by
          #31

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

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

          M 1 Reply Last reply 5 Jan 2024, 15:58
          1
          • J JoeCFD
            5 Jan 2024, 15:50

            @mzimmers Click Manage Kits->Devices
            select your device in Device combobox since your device may not be the default one.
            Then click Debug above Run button and select your connected device.

            M Offline
            M Offline
            mzimmers
            wrote on 5 Jan 2024, 15:56 last edited by
            #32

            @JoeCFD interesting -- I thought I had deleted that device, but it still shows up (and appears to be selected):
            Screenshot 2024-01-05 075223.png
            I'm not sure what you are referring to with "Debug above Run button." I'm only trying to build a release version.

            1 Reply Last reply
            0
            • E ekkescorner
              5 Jan 2024, 15:55

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

              M Offline
              M Offline
              mzimmers
              wrote on 5 Jan 2024, 15:58 last edited by
              #33

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

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

              J 1 Reply Last reply 5 Jan 2024, 15:59
              0
              • M mzimmers
                5 Jan 2024, 15:58

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

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

                J Offline
                J Offline
                JoeCFD
                wrote on 5 Jan 2024, 15:59 last edited by JoeCFD 1 May 2024, 16:03
                #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.

                M 1 Reply Last reply 5 Jan 2024, 16:01
                0
                • J JoeCFD
                  5 Jan 2024, 15:59

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

                  M Offline
                  M Offline
                  mzimmers
                  wrote on 5 Jan 2024, 16:01 last edited by
                  #35

                  @JoeCFD
                  Screenshot 2024-01-05 080058.png

                  J 1 Reply Last reply 5 Jan 2024, 16:04
                  0
                  • M mzimmers
                    5 Jan 2024, 16:01

                    @JoeCFD
                    Screenshot 2024-01-05 080058.png

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 5 Jan 2024, 16:04 last edited by JoeCFD 1 May 2024, 16:05
                    #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.

                    M 1 Reply Last reply 5 Jan 2024, 16:06
                    0
                    • J JoeCFD
                      5 Jan 2024, 16:04

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

                      M Offline
                      M Offline
                      mzimmers
                      wrote on 5 Jan 2024, 16:06 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).

                      J 1 Reply Last reply 5 Jan 2024, 16:20
                      0
                      • M mzimmers
                        5 Jan 2024, 16:06

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

                        J Offline
                        J Offline
                        JoeCFD
                        wrote on 5 Jan 2024, 16:20 last edited by JoeCFD 1 May 2024, 16:21
                        #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.

                        M 1 Reply Last reply 5 Jan 2024, 16:25
                        0
                        • J JoeCFD
                          5 Jan 2024, 16:20

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

                          M Offline
                          M Offline
                          mzimmers
                          wrote on 5 Jan 2024, 16:25 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.

                          J 1 Reply Last reply 5 Jan 2024, 16:33
                          0
                          • M mzimmers
                            5 Jan 2024, 16:25

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

                            J Offline
                            J Offline
                            JoeCFD
                            wrote on 5 Jan 2024, 16:33 last edited by JoeCFD 1 May 2024, 16:35
                            #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.

                            M 1 Reply Last reply 5 Jan 2024, 16:40
                            1
                            • J JoeCFD
                              5 Jan 2024, 16:33

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

                              M Offline
                              M Offline
                              mzimmers
                              wrote on 5 Jan 2024, 16:40 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

                              J 1 Reply Last reply 5 Jan 2024, 16:43
                              0
                              • M mzimmers
                                5 Jan 2024, 16:40

                                @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

                                J Offline
                                J Offline
                                JoeCFD
                                wrote on 5 Jan 2024, 16:43 last edited by JoeCFD 1 May 2024, 16:45
                                #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.

                                M 1 Reply Last reply 5 Jan 2024, 16:53
                                0
                                • J JoeCFD
                                  5 Jan 2024, 16:43

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

                                  M Offline
                                  M Offline
                                  mzimmers
                                  wrote on 5 Jan 2024, 16:53 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.

                                  J J 2 Replies Last reply 5 Jan 2024, 17:01
                                  0
                                  • M mzimmers
                                    5 Jan 2024, 16:53

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

                                    J Offline
                                    J Offline
                                    JoeCFD
                                    wrote on 5 Jan 2024, 17:01 last edited by JoeCFD 1 May 2024, 17:02
                                    #44

                                    @mzimmers click SDK Manager button to install Android 13 SDKs

                                    M 1 Reply Last reply 6 Jan 2024, 00:39
                                    0
                                    • J JoeCFD
                                      5 Jan 2024, 17:01

                                      @mzimmers click SDK Manager button to install Android 13 SDKs

                                      M Offline
                                      M Offline
                                      mzimmers
                                      wrote on 6 Jan 2024, 00:39 last edited by
                                      #45

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

                                      1 Reply Last reply
                                      0
                                      • M mzimmers
                                        5 Jan 2024, 16:53

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

                                        J Offline
                                        J Offline
                                        JKSH
                                        Moderators
                                        wrote on 6 Jan 2024, 14:16 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

                                        M 1 Reply Last reply 6 Jan 2024, 19:53
                                        0
                                        • J JKSH
                                          6 Jan 2024, 14:16

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

                                          M Offline
                                          M Offline
                                          mzimmers
                                          wrote on 6 Jan 2024, 19:53 last edited by mzimmers 1 Jun 2024, 19:57
                                          #47
                                          This post is deleted!
                                          1 Reply Last reply
                                          0

                                          37/87

                                          5 Jan 2024, 16:06

                                          • Login

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