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 4.2k 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.
  • M mzimmers
    13 Feb 2023, 18:24

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

    J Offline
    J Offline
    JoeCFD
    wrote on 13 Feb 2023, 18:37 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?

    M 1 Reply Last reply 13 Feb 2023, 18:43
    1
    • J JoeCFD
      13 Feb 2023, 18:37

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

      M Offline
      M Offline
      mzimmers
      wrote on 13 Feb 2023, 18:43 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.

      J 1 Reply Last reply 13 Feb 2023, 18:47
      0
      • M mzimmers
        13 Feb 2023, 18:43

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

        J Offline
        J Offline
        JoeCFD
        wrote on 13 Feb 2023, 18:47 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.

        M 1 Reply Last reply 13 Feb 2023, 19:35
        0
        • J JoeCFD
          13 Feb 2023, 18:47

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

          M Offline
          M Offline
          mzimmers
          wrote on 13 Feb 2023, 19:35 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...

          P 1 Reply Last reply 13 Feb 2023, 19:39
          0
          • M mzimmers
            13 Feb 2023, 19:35

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

            P Offline
            P Offline
            piervalli
            wrote on 13 Feb 2023, 19:39 last edited by
            #18

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

            "Create template" copy android project under your project.

            M 1 Reply Last reply 13 Feb 2023, 19:59
            2
            • P piervalli
              13 Feb 2023, 19:39

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

              "Create template" copy android project under your project.

              M Offline
              M Offline
              mzimmers
              wrote on 13 Feb 2023, 19:59 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."

              J P 2 Replies Last reply 13 Feb 2023, 20:03
              0
              • M mzimmers
                13 Feb 2023, 19:59

                @piervalli aha!

                template.PNG

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

                J Offline
                J Offline
                JoeCFD
                wrote on 13 Feb 2023, 20:03 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.

                M 1 Reply Last reply 13 Feb 2023, 20:23
                1
                • J JoeCFD
                  13 Feb 2023, 20:03

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

                  M Offline
                  M Offline
                  mzimmers
                  wrote on 13 Feb 2023, 20:23 last edited by mzimmers
                  #21

                  @JoeCFD no, you definitely were on the right track. I went ahead and regenerated the templates, renamed my package and it works now.

                  Also, when I regenerated the templates, my new file had this line in it (FWIW):

                  <uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"/>
                  

                  Thank you both for the help...this Android stuff sure is complicated (and somewhat fragile).

                  J 1 Reply Last reply 13 Feb 2023, 20:27
                  0
                  • M mzimmers
                    13 Feb 2023, 20:23

                    @JoeCFD no, you definitely were on the right track. I went ahead and regenerated the templates, renamed my package and it works now.

                    Also, when I regenerated the templates, my new file had this line in it (FWIW):

                    <uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"/>
                    

                    Thank you both for the help...this Android stuff sure is complicated (and somewhat fragile).

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 13 Feb 2023, 20:27 last edited by
                    #22

                    @mzimmers Do not upgrade Qt(especially 6) too often and keep working code. Now you know how to create xml file which will be changed more by you in the future

                    1 Reply Last reply
                    0
                    • M mzimmers has marked this topic as solved on 13 Feb 2023, 20:28
                    • M mzimmers
                      13 Feb 2023, 19:59

                      @piervalli aha!

                      template.PNG

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

                      P Offline
                      P Offline
                      piervalli
                      wrote on 14 Feb 2023, 07:26 last edited by
                      #23

                      @mzimmers

                      Yes, you can change the name,changes logo and a customer permissions etc..

                      1 Reply Last reply
                      0
                      • M mzimmers referenced this topic on 18 Nov 2024, 22:47

                      23/23

                      14 Feb 2023, 07:26

                      • Login

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