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 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 Online
      jsulmJ Online
      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 Online
            jsulmJ Online
            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 Online
                jsulmJ Online
                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 Online
                    jsulmJ Online
                    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
                    • M Offline
                      M Offline
                      Mihaill
                      wrote on last edited by Mihaill
                      #22

                      @jsulm said in How on Ot6 compile for Android:

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

                      Yes, I can

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Rampe
                        wrote on last edited by Rampe
                        #23

                        I might not know from the description the exact problem, but you could try this.

                        • Select in Qt Creator your project (if not already selected). E.g. select Edit on left, then Projects, select your project, right-click on top of it and select "Set [your project] as active project"
                        • Then go on the bottom-left corner where you see the icons: Hammer (Build project [your project]), Green arrow with a bug (Start debugging of startup..), Green arrow (Run) and Android phone with a green dot/ball - left-click the last one with mouse
                        • Now you see Device (top-left) and on it's right some device name (the device to run the applications on) and on far right Manage button
                        • Left-click the Device and select the "else phone" i.e no "SM-N9810" but the phone you had connected with USB cable
                        • Or Left-click Manage and it opens up Devices, you can see Device, select it and select the "else phone" i.e. the phone you had connected with USB cable and like to use
                        • Press Apply on the bottom-right and check is the Current state a green ball & Ready to use - if yes press OK

                        After above try to use green arrow (Run) to deploy the project to target and execute on it.

                        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