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
Forum Updated to NodeBB v4.3 + New Features

How on Ot6 compile for Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
23 Posts 4 Posters 2.6k 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 Mihaill

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

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on 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 last edited by
      #3

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

      jsulmJ 1 Reply Last reply
      0
      • M Mihaill

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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on 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 last edited by
          #5

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

          jsulmJ 1 Reply Last reply
          0
          • M Mihaill

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

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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 last edited by Mihaill
              #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.
              
              jsulmJ 1 Reply Last reply
              0
              • M Mihaill

                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.
                
                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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 last edited by
                  #9

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

                  jsulmJ 1 Reply Last reply
                  0
                  • M Mihaill

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

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 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

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

                      J.HilkJ Offline
                      J.HilkJ Offline
                      J.Hilk
                      Moderators
                      wrote on 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 last edited by
                        #12
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mihaill
                          wrote on last edited by
                          #13

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

                          jsulmJ 1 Reply Last reply
                          0
                          • M Mihaill

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

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 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 last edited by Mihaill
                              #15
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mihaill
                                wrote on last edited by
                                #16

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

                                jsulmJ 1 Reply Last reply
                                0
                                • M Mihaill

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

                                  jsulmJ Offline
                                  jsulmJ Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 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 last edited by
                                    #18

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

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • M Mihaill

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

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 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 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.

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • M Mihaill
                                          The deployment device "SM-N9810" is disconnected.
                                          

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

                                          jsulmJ Offline
                                          jsulmJ Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #21

                                          @Mihaill Can you access your phone from Ubuntu? Like accessing files on the phone.

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

                                          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