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. error when trying to deploy Android application.
Forum Updated to NodeBB v4.3 + New Features

error when trying to deploy Android application.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
23 Posts 3 Posters 3.5k Views 2 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by mzimmers
    #1

    Hi all -

    I had to reinstall Qt 6.4.2, and now, when I try to deploy an Android application, I'm getting the following error:

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

    I'm not sure what to make of this -- can someone please enlighten me?

    Thanks...

    EDIT:

    My AndroidManifest.xml file does indeed have an entry for this:

            <activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="-- %%INSERT_APP_NAME%% --" android:launchMode="singleTop" android:screenOrientation="landscape" android:exported="true">
    

    Can someone inform me what this error message means?

    mzimmersM 1 Reply Last reply
    0
    • mzimmersM mzimmers

      @JoeCFD my AndroidManifest.xml is indeed under git, and it hasn't changed. I don't remember how I created it the first time; can you tell me how this is usually performed?

      Thanks...

      piervalliP Offline
      piervalliP Offline
      piervalli
      wrote on last edited by
      #18

      @mzimmers
      42a26509-d80c-43f0-b7c7-8904d19e6d0a-image.png

      "Create template" copy android project under your project.

      mzimmersM 1 Reply Last reply
      2
      • mzimmersM mzimmers

        Hi all -

        I had to reinstall Qt 6.4.2, and now, when I try to deploy an Android application, I'm getting the following error:

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

        I'm not sure what to make of this -- can someone please enlighten me?

        Thanks...

        EDIT:

        My AndroidManifest.xml file does indeed have an entry for this:

                <activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="-- %%INSERT_APP_NAME%% --" android:launchMode="singleTop" android:screenOrientation="landscape" android:exported="true">
        

        Can someone inform me what this error message means?

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

        Another data point: the application runs on the Android emulator, but not on an Android tablet.

        Any ideas? Thanks...

        JoeCFDJ 1 Reply Last reply
        0
        • mzimmersM mzimmers

          Another data point: the application runs on the Android emulator, but not on an Android tablet.

          Any ideas? Thanks...

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

          @mzimmers do you enable permission on your tablet to run your app?

          mzimmersM 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            @mzimmers do you enable permission on your tablet to run your app?

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

            @JoeCFD I believe so. It used to run on this tablet.

            How do I verify such a permission?

            JoeCFDJ 1 Reply Last reply
            0
            • mzimmersM mzimmers

              @JoeCFD I believe so. It used to run on this tablet.

              How do I verify such a permission?

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

              @mzimmers somewhere in the settings. I do not have any tablet at hand now.

              mzimmersM piervalliP 2 Replies Last reply
              0
              • JoeCFDJ JoeCFD

                @mzimmers somewhere in the settings. I do not have any tablet at hand now.

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

                @JoeCFD based on my error message, it seems that the problem isn't on the tablet, but in my image (as if I'm missing a Qt component [that activity class] in my build).

                1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @mzimmers somewhere in the settings. I do not have any tablet at hand now.

                  piervalliP Offline
                  piervalliP Offline
                  piervalli
                  wrote on last edited by
                  #7

                  @JoeCFD
                  The authorizations are standard for Android app, search on Google for your tablet.
                  Ps You need in startup of the application ask the authorizations. There are examples in Qt

                  piervalliP mzimmersM 2 Replies Last reply
                  0
                  • piervalliP piervalli

                    @JoeCFD
                    The authorizations are standard for Android app, search on Google for your tablet.
                    Ps You need in startup of the application ask the authorizations. There are examples in Qt

                    piervalliP Offline
                    piervalliP Offline
                    piervalli
                    wrote on last edited by
                    #8

                    @piervalli
                    Ps emulator and tablet have the same version architecture of Arm? Usually last Smartphone are a 64 bit
                    In Qt creator you can build for a single architecture o multi CPU

                    1 Reply Last reply
                    0
                    • piervalliP piervalli

                      @JoeCFD
                      The authorizations are standard for Android app, search on Google for your tablet.
                      Ps You need in startup of the application ask the authorizations. There are examples in Qt

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

                      @piervalli I guess I didn't make it clear that this used to work. It's when I reinstalled Qt that I began encountering this error. I tried to keep good notes on the steps involved in setting this up, but maybe I missed one.

                      EDIT:

                      I have separate kits for the emulator and the tablet. The kit for the tablet used to work fine.

                      JoeCFDJ 1 Reply Last reply
                      0
                      • mzimmersM mzimmers

                        @piervalli I guess I didn't make it clear that this used to work. It's when I reinstalled Qt that I began encountering this error. I tried to keep good notes on the steps involved in setting this up, but maybe I missed one.

                        EDIT:

                        I have separate kits for the emulator and the tablet. The kit for the tablet used to work fine.

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

                        @mzimmers can you show the error messages? It may be better not to upgrade your Qt version often. I am still sticking to Qt 5.15.2 and scared to upgrade. But I did start another project with Qt 6.5 and saw a lot of changes.

                        mzimmersM 1 Reply Last reply
                        0
                        • JoeCFDJ JoeCFD

                          @mzimmers can you show the error messages? It may be better not to upgrade your Qt version often. I am still sticking to Qt 5.15.2 and scared to upgrade. But I did start another project with Qt 6.5 and saw a lot of changes.

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

                          @JoeCFD from above:

                          Activity Manager threw the error: Error type 3
                          Error: Activity class {org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity} does not exist.
                          08:32:06: 
                          
                          "org.qtproject.example" died.
                          
                          JoeCFDJ 1 Reply Last reply
                          0
                          • mzimmersM mzimmers

                            @JoeCFD from above:

                            Activity Manager threw the error: Error type 3
                            Error: Activity class {org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity} does not exist.
                            08:32:06: 
                            
                            "org.qtproject.example" died.
                            
                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by
                            #12

                            @mzimmers said in error when trying to deploy Android application.:

                            {org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity} does not exist

                            What was the version of Qt you used before?

                            mzimmersM 1 Reply Last reply
                            0
                            • JoeCFDJ JoeCFD

                              @mzimmers said in error when trying to deploy Android application.:

                              {org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity} does not exist

                              What was the version of Qt you used before?

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

                              @JoeCFD same version (6.4.2). I had to reinstall because I messed up some file permissions in my original copy.

                              JoeCFDJ 1 Reply Last reply
                              0
                              • mzimmersM mzimmers

                                @JoeCFD same version (6.4.2). I had to reinstall because I messed up some file permissions in my original copy.

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

                                @mzimmers the path org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity seems not right. Is it org.qtproject.qt.android.bindings.QtActivity? Do you have a folder: org.qtproject.example? or do you have a customized QtActivity?

                                mzimmersM 1 Reply Last reply
                                1
                                • JoeCFDJ JoeCFD

                                  @mzimmers the path org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity seems not right. Is it org.qtproject.qt.android.bindings.QtActivity? Do you have a folder: org.qtproject.example? or do you have a customized QtActivity?

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

                                  @JoeCFD said in error when trying to deploy Android application.:

                                  @mzimmers the path org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity seems not right. Is it org.qtproject.qt.android.bindings.QtActivity?

                                  Honestly, I don't recall where I got any of the contents for my android folder. I think it was all auto-generated for me.

                                  Are you suggesting that I remove the "org.qtproject.example" portion?

                                  Do you have a folder: org.qtproject.example?

                                  No.

                                  or do you have a customized QtActivity?

                                  No.

                                  JoeCFDJ 1 Reply Last reply
                                  0
                                  • mzimmersM mzimmers

                                    @JoeCFD said in error when trying to deploy Android application.:

                                    @mzimmers the path org.qtproject.example/org.qtproject.qt.android.bindings.QtActivity seems not right. Is it org.qtproject.qt.android.bindings.QtActivity?

                                    Honestly, I don't recall where I got any of the contents for my android folder. I think it was all auto-generated for me.

                                    Are you suggesting that I remove the "org.qtproject.example" portion?

                                    Do you have a folder: org.qtproject.example?

                                    No.

                                    or do you have a customized QtActivity?

                                    No.

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

                                    @mzimmers Make a copy of your AndroidManifest.xml and delete it from your project.
                                    Then create a new one to see if it helps. If you made changes in it, add them in.

                                    Better to keep your working code inside git or svn. Then you will have fewer troubles.

                                    mzimmersM 1 Reply Last reply
                                    0
                                    • JoeCFDJ JoeCFD

                                      @mzimmers Make a copy of your AndroidManifest.xml and delete it from your project.
                                      Then create a new one to see if it helps. If you made changes in it, add them in.

                                      Better to keep your working code inside git or svn. Then you will have fewer troubles.

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

                                      @JoeCFD my AndroidManifest.xml is indeed under git, and it hasn't changed. I don't remember how I created it the first time; can you tell me how this is usually performed?

                                      Thanks...

                                      piervalliP 1 Reply Last reply
                                      0
                                      • mzimmersM mzimmers

                                        @JoeCFD my AndroidManifest.xml is indeed under git, and it hasn't changed. I don't remember how I created it the first time; can you tell me how this is usually performed?

                                        Thanks...

                                        piervalliP Offline
                                        piervalliP Offline
                                        piervalli
                                        wrote on last edited by
                                        #18

                                        @mzimmers
                                        42a26509-d80c-43f0-b7c7-8904d19e6d0a-image.png

                                        "Create template" copy android project under your project.

                                        mzimmersM 1 Reply Last reply
                                        2
                                        • piervalliP piervalli

                                          @mzimmers
                                          42a26509-d80c-43f0-b7c7-8904d19e6d0a-image.png

                                          "Create template" copy android project under your project.

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

                                          @piervalli aha!

                                          template.PNG

                                          So, can I just give my package any name I want? It didn't seem to like "org.qtproject.example."

                                          JoeCFDJ piervalliP 2 Replies Last reply
                                          0
                                          • mzimmersM mzimmers

                                            @piervalli aha!

                                            template.PNG

                                            So, can I just give my package any name I want? It didn't seem to like "org.qtproject.example."

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

                                            @mzimmers Sorry. It seems ok. It is a default package name. I have a different one. But it should not matter. I guess it is something else.

                                            The only thing I can remember is to enable this app run on the settings of tablet. You can try to copy your apk into the tablet and install it to see if it works. I guess you know where it is located.

                                            mzimmersM 1 Reply Last reply
                                            1

                                            • Login

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