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. STILL unable to deploy/run on Android
Forum Updated to NodeBB v4.3 + New Features

STILL unable to deploy/run on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
11 Posts 2 Posters 590 Views 1 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.
  • M Offline
    M Offline
    mzimmers
    wrote on 18 Nov 2024, 22:47 last edited by
    #1

    Hi all -

    I've been having an ongoing issue with using Creator to download and run apps on an Android. (I've posted on them in the past, for example here.

    I believe that Creator is set up properly to do this.
    Screenshot 2024-11-18 144425.png
    I'm trying to follow the accelbubble tutorial but when I try to run (or debug), I get this error:

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

    I remember being told awhile back that the manifest editor wasn't working correctly and should be avoided. Is this still true?

    Can anyone tell me what I'm doing wrong that provokes this error?

    Thanks...

    1 Reply Last reply
    0
    • J Online
      J Online
      J.Hilk
      Moderators
      wrote on 19 Nov 2024, 07:14 last edited by
      #2

      What version of Qt/ Qt6 are you using, QtActivity was deprecated and is no longer accessible in the later versions


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      M 1 Reply Last reply 19 Nov 2024, 13:46
      0
      • J J.Hilk
        19 Nov 2024, 07:14

        What version of Qt/ Qt6 are you using, QtActivity was deprecated and is no longer accessible in the later versions

        M Offline
        M Offline
        mzimmers
        wrote on 19 Nov 2024, 13:46 last edited by
        #3

        @J-Hilk 6.5.3. If it will simplify this exercise, I can update.

        J 1 Reply Last reply 19 Nov 2024, 13:54
        0
        • M mzimmers
          19 Nov 2024, 13:46

          @J-Hilk 6.5.3. If it will simplify this exercise, I can update.

          J Online
          J Online
          J.Hilk
          Moderators
          wrote on 19 Nov 2024, 13:54 last edited by
          #4

          @mzimmers you should potentially downgrade :D

          anyway, just create a new empty project -> apply android kit -> click create android templates -> build and run

          that should work.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mzimmers
            wrote on 19 Nov 2024, 14:10 last edited by
            #5

            @J-Hilk same error. (I didn't create a new project; instead I re-used the accelbubble example, but I deleted the Android build directory as well as the android directory in the project.) When I create the templates, I do get this error:

            Screenshot 2024-11-19 060449.png

            And, I'm not changing anything in AndroidManifest.xml, partly because I'd been told this editor was broken (though it may be fixed in Creator 14), and partly because I really don't understand what is supposed to go in here.

            J 1 Reply Last reply 19 Nov 2024, 14:19
            0
            • M mzimmers
              19 Nov 2024, 14:10

              @J-Hilk same error. (I didn't create a new project; instead I re-used the accelbubble example, but I deleted the Android build directory as well as the android directory in the project.) When I create the templates, I do get this error:

              Screenshot 2024-11-19 060449.png

              And, I'm not changing anything in AndroidManifest.xml, partly because I'd been told this editor was broken (though it may be fixed in Creator 14), and partly because I really don't understand what is supposed to go in here.

              J Online
              J Online
              J.Hilk
              Moderators
              wrote on 19 Nov 2024, 14:19 last edited by
              #6

              @mzimmers said in STILL unable to deploy/run on Android:

              I'm not changing anything in AndroidManifest.xml,

              and thats exactly the problem, org.qtproject.qt.android.bindings.QtActivity is referenced in the AndroidManifest, part of the <activity> tag

              There's a reason why I suggested a clean new empty project .


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mzimmers
                wrote on 19 Nov 2024, 14:32 last edited by mzimmers
                #7

                Just tried a new project (used the accelbubble example again). When I create the templates, it inserts the problematic QML line:

                        <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="unspecified" android:exported="true">
                

                So, I'm back to the same problem.

                I suppose it's too much to hope that I could just delete this line from the XML file...EDIT, yes, that line is necessary.

                J 1 Reply Last reply 19 Nov 2024, 14:58
                0
                • M mzimmers
                  19 Nov 2024, 14:32

                  Just tried a new project (used the accelbubble example again). When I create the templates, it inserts the problematic QML line:

                          <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="unspecified" android:exported="true">
                  

                  So, I'm back to the same problem.

                  I suppose it's too much to hope that I could just delete this line from the XML file...EDIT, yes, that line is necessary.

                  J Online
                  J Online
                  J.Hilk
                  Moderators
                  wrote on 19 Nov 2024, 14:58 last edited by
                  #8

                  @mzimmers said in STILL unable to deploy/run on Android:

                  Just tried a new project (used the accelbubble example again)

                  my non native speaking brain finds this contradictory ^^
                  Maybe I'm confusing things as well, your accelbubble link seems more like a guide on how to setup a new empty project instead of one of the pre made examples you get from QtCreator!

                  Anyway, what version of creator are you using ? IIRC the androidmanifest template is part of QtC and not necessarily of the QtLibrary used.


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mzimmers
                    wrote on 19 Nov 2024, 15:02 last edited by
                    #9

                    I’m using the project wizard to create the project but using the crake, Qml and svg files from the example. Is this not what you wanted me to do?

                    Using Creator 14 .0.2.

                    J 1 Reply Last reply 19 Nov 2024, 15:15
                    0
                    • M mzimmers
                      19 Nov 2024, 15:02

                      I’m using the project wizard to create the project but using the crake, Qml and svg files from the example. Is this not what you wanted me to do?

                      Using Creator 14 .0.2.

                      J Online
                      J Online
                      J.Hilk
                      Moderators
                      wrote on 19 Nov 2024, 15:15 last edited by
                      #10

                      @mzimmers sounds about right.

                      And I have to apologise, I just created an android project with 14.0.2 and 6.8

                      The AndroidManifestFile still has the QtActivity reference. But it does compile fine for me despite that!

                      the android settings I'm using:

                      ab914e45-86c2-496a-8ae4-891efd25767a-image.png


                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                      Q: What's that?
                      A: It's blue light.
                      Q: What does it do?
                      A: It turns blue.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mzimmers
                        wrote on 19 Nov 2024, 15:21 last edited by
                        #11

                        It compiles for me, too, but it doesn’t run.

                        1 Reply Last reply
                        0

                        4/11

                        19 Nov 2024, 13:54

                        topic:navigator.unread, 7
                        • Login

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