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 Updated to NodeBB v4.3 + New Features

Android app doesn't run

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

    @JKSH said in Android app doesn't run:

    Be warned, that manifest editor is badly broken: https://bugreports.qt.io/browse/QTCREATORBUG-27119 I recommend that you don't touch it -- even the act of opening that editor is enough to corrupt the manifest file in some cases.

    also have noticed that opening with Manifest Editor sometimes changes the content. But in my cases it was only a reformatting / reordering and nothing destroyed. (QtC 12.0.1)

    BTW: I'm getting best experiences this way:

    • Update Templates
    • check changes (using git)
    • add / replace with my settings
      this way I'm always getting the newest recommended values
    mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #23

    @ekkescorner said in Android app doesn't run:

    check changes (using git)

    Could you elaborate on this? Changes to what, exactly?

    ekkescornerE 1 Reply Last reply
    0
    • mzimmersM mzimmers

      @ekkescorner said in Android app doesn't run:

      check changes (using git)

      Could you elaborate on this? Changes to what, exactly?

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

      @mzimmers see here what I did while updating from 5.15 to 6.6:
      https://t1p.de/ekkeAndroidTemplates66
      this will give you the idea how I'm doing this

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

      mzimmersM 1 Reply Last reply
      1
      • JKSHJ JKSH

        @mzimmers said in Android app doesn't run:

        I created a new, minimal project, and I'm still getting the error:

        Quick sanity check: Do you get the error if create a new, minimal project and run it on Android without doing anything at all to the manifest file? In other words, just create the project and build + run it.

        I'm guessing it has something to do with my manifest file, and here's where I need help. I really don't understand most of the fields in this display:

        Be warned, that manifest editor is badly broken: https://bugreports.qt.io/browse/QTCREATORBUG-27119 I recommend that you don't touch it -- even the act of opening that editor is enough to corrupt the manifest file in some cases.

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

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

        ekkescornerE JoeCFDJ 2 Replies Last reply
        0
        • ekkescornerE ekkescorner

          @mzimmers see here what I did while updating from 5.15 to 6.6:
          https://t1p.de/ekkeAndroidTemplates66
          this will give you the idea how I'm doing this

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

          @ekkescorner that's a great page. I'm using 6.5.3; do you think your suggestions will work with this version?

          ekkescornerE 1 Reply Last reply
          0
          • mzimmersM mzimmers

            @ekkescorner that's a great page. I'm using 6.5.3; do you think your suggestions will work with this version?

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

            @mzimmers will be similar, but not the same. per ex. the Qt FileProvider only exists in 6.6+

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

            1 Reply Last reply
            0
            • mzimmersM mzimmers

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

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on 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.9 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              mzimmersM 1 Reply Last reply
              0
              • mzimmersM mzimmers

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

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #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.

                mzimmersM 1 Reply Last reply
                0
                • ekkescornerE ekkescorner

                  @mzimmers said in Android app doesn't run:

                  my Android device shows as "disconnected"

                  connected via wifi or via usb cable ?

                  mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on 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.

                  ekkescornerE 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

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

                    ekkescornerE Offline
                    ekkescornerE Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on 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.9 https://t1p.de/ekkeChecklist
                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                    mzimmersM 1 Reply Last reply
                    1
                    • JoeCFDJ JoeCFD

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

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on 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
                      • 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

                                          • Login

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