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. How on Ot6 compile for Android
QtWS25 Last Chance

How on Ot6 compile for Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
23 Posts 4 Posters 2.2k 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.
  • M Offline
    M Offline
    Mihaill
    wrote on 7 Feb 2022, 06:54 last edited by
    #1

    Hi!
    I use jdk 8 and last SDK and NDK, but I can't build for Android. Whot me need do?

    J J 2 Replies Last reply 7 Feb 2022, 06:55
    0
    • M Mihaill
      7 Feb 2022, 06:54

      Hi!
      I use jdk 8 and last SDK and NDK, but I can't build for Android. Whot me need do?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 7 Feb 2022, 06:55 last edited by
      #2

      @Mihaill said in How on Ot6 compile for Android:

      Whot me need do?

      You need to explain what "but I can't build for Android" means exactly.
      How else should anybody know what the problem could be?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihaill
        wrote on 7 Feb 2022, 07:54 last edited by
        #3

        Qt 5 with this options build for android, but Qt6 can't built. Whot information you need?

        J 1 Reply Last reply 7 Feb 2022, 07:56
        0
        • M Mihaill
          7 Feb 2022, 07:54

          Qt 5 with this options build for android, but Qt6 can't built. Whot information you need?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 7 Feb 2022, 07:56 last edited by
          #4

          @Mihaill said in How on Ot6 compile for Android:

          Whot information you need?

          An explanation what EXACTLY does not work...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mihaill
            wrote on 7 Feb 2022, 08:32 last edited by
            #5

            I create new project, attempt build and get this errors:
            Снимок экрана от 2022-02-07 11-31-45.png

            J 1 Reply Last reply 7 Feb 2022, 08:36
            0
            • M Mihaill
              7 Feb 2022, 08:32

              I create new project, attempt build and get this errors:
              Снимок экрана от 2022-02-07 11-31-45.png

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 7 Feb 2022, 08:36 last edited by
              #6

              @Mihaill The error tells you what the problem is: you need Java 11, not 1.8.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mihaill
                wrote on 7 Feb 2022, 09:41 last edited by Mihaill 2 Jul 2022, 11:26
                #7

                If I use jdk 11, then I get error: fro SDK not higher 26 need jdk only 1.8. And build not work.

                Снимок экрана от 2022-02-07 12-51-38.png
                or

                Android build SDK version is not defined. Check Android settings.
                
                J 1 Reply Last reply 7 Feb 2022, 11:54
                0
                • M Mihaill
                  7 Feb 2022, 09:41

                  If I use jdk 11, then I get error: fro SDK not higher 26 need jdk only 1.8. And build not work.

                  Снимок экрана от 2022-02-07 12-51-38.png
                  or

                  Android build SDK version is not defined. Check Android settings.
                  
                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 7 Feb 2022, 11:54 last edited by
                  #8

                  @Mihaill To me it looks like you're trying to execute Java built for ARM.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mihaill
                    wrote on 7 Feb 2022, 12:24 last edited by
                    #9

                    My android device use arm cpu. And it isoptions work for qt 5. Whot me need do?

                    J 1 Reply Last reply 7 Feb 2022, 12:27
                    0
                    • M Mihaill
                      7 Feb 2022, 12:24

                      My android device use arm cpu. And it isoptions work for qt 5. Whot me need do?

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 7 Feb 2022, 12:27 last edited by
                      #10

                      @Mihaill said in How on Ot6 compile for Android:

                      My android device use arm cpu

                      But the build is on your PC, not the device, right?
                      You should check your Android Kit - are there any warnings/errors?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • M Mihaill
                        7 Feb 2022, 06:54

                        Hi!
                        I use jdk 8 and last SDK and NDK, but I can't build for Android. Whot me need do?

                        J Offline
                        J Offline
                        J.Hilk
                        Moderators
                        wrote on 7 Feb 2022, 12:31 last edited by
                        #11

                        @Mihaill There were a couple of mayor changes in Android/gradle between SDK versions, Qt6 uses a much newer version of android/gradle than qt5 does.

                        I would suggest, creating a simple qt android project using Qt6, use QtCreator do create default android templates.

                        See if that compiles (I assume it will) check the difference in the android template files and change your existing one accordingly.


                        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
                          Mihaill
                          wrote on 7 Feb 2022, 12:34 last edited by
                          #12
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            Mihaill
                            wrote on 7 Feb 2022, 14:22 last edited by
                            #13

                            I change options, use jdk 11 and now get only 1 error: importing a package requires a version number

                            J 1 Reply Last reply 7 Feb 2022, 14:33
                            0
                            • M Mihaill
                              7 Feb 2022, 14:22

                              I change options, use jdk 11 and now get only 1 error: importing a package requires a version number

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 7 Feb 2022, 14:33 last edited by
                              #14

                              @Mihaill Then please show the place where the error originates.

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mihaill
                                wrote on 8 Feb 2022, 06:10 last edited by Mihaill 2 Aug 2022, 07:56
                                #15
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  Mihaill
                                  wrote on 8 Feb 2022, 08:27 last edited by
                                  #16

                                  Now I can build for android, but get error on step «Deploy to Android device»

                                  J 1 Reply Last reply 8 Feb 2022, 08:28
                                  0
                                  • M Mihaill
                                    8 Feb 2022, 08:27

                                    Now I can build for android, but get error on step «Deploy to Android device»

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 8 Feb 2022, 08:28 last edited by
                                    #17

                                    @Mihaill What is the device you're using for deployment?

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Mihaill
                                      wrote on 10 Feb 2022, 06:46 last edited by
                                      #18

                                      I use android phone. On windows i can deploy on my phone, but on ubuntudont cant.

                                      J 1 Reply Last reply 10 Feb 2022, 07:25
                                      0
                                      • M Mihaill
                                        10 Feb 2022, 06:46

                                        I use android phone. On windows i can deploy on my phone, but on ubuntudont cant.

                                        J Offline
                                        J Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 10 Feb 2022, 07:25 last edited by
                                        #19

                                        @Mihaill What exact error do you get if your try to deploy?

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          Mihaill
                                          wrote on 10 Feb 2022, 09:51 last edited by
                                          #20
                                          The deployment device "SM-N9810" is disconnected.
                                          

                                          But I use else phone. End I can't select device, when push build.

                                          J 1 Reply Last reply 10 Feb 2022, 09:54
                                          0

                                          1/23

                                          7 Feb 2022, 06:54

                                          • Login

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