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 Update on Monday, May 27th 2025

STILL unable to deploy/run on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
11 Posts 2 Posters 582 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.
  • J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on 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.

    mzimmersM 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

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

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

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

      J.HilkJ 1 Reply Last reply
      0
      • mzimmersM mzimmers

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

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on 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
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on 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.HilkJ 1 Reply Last reply
          0
          • mzimmersM mzimmers

            @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.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on 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
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on 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.HilkJ 1 Reply Last reply
              0
              • mzimmersM mzimmers

                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.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on 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
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on 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.HilkJ 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

                    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.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on 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
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #11

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

                      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