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 to get apk from qt qreator

How to get apk from qt qreator

Scheduled Pinned Locked Moved Mobile and Embedded
15 Posts 3 Posters 5.3k Views 1 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 Offline
    M Offline
    mehdi.nine
    wrote on last edited by
    #3

    thanks for your reply. res and src are in android folder but there is not bin folder.(the virtual android device are started but i can't execute program in that)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Moster
      wrote on last edited by
      #4

      What is the error you are getting when you try to execute it?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mehdi.nine
        wrote on last edited by
        #5

        there is no error. the virtual android is starting and i can see that. but i can't how can i run my program in that and get apk.(also i can build my program without error).

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Moster
          wrote on last edited by
          #6

          When the emulator is started, click the green Run button again. Actually you should see some compile and application output in Qt creator.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mehdi.nine
            wrote on last edited by
            #7

            when emulator is executed i can't click green button on qt qreator because it will be not responding until emulator is running.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Moster
              wrote on last edited by
              #8

              Maybe wait some time. Actually you should still be able to access the Qt creator.

              If it doesnt work, you could try a newer version. They are making snapshots of their current development mostly every day

              http://download.qt-project.org/snapshots/qt/5.1/5.1.1-rc1/backups/

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mehdi.nine
                wrote on last edited by
                #9

                No, i wait a long time.
                when i close emulator in issues it wrote:
                @
                :-1: error: Cannot deploy: no devices or emulators found for your package.
                @
                an in compile output it wrote:
                @
                10:59:25: Please wait, searching for a suitable device for target:android-18.
                Error while building/deploying project untitled18 (kit: Android for x86 (GCC 4.8, Qt 5.1.0))
                When executing step 'Deploy to Android device'
                @

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Moster
                  wrote on last edited by
                  #10

                  Try to change the Kit to Android for Arm and not x86. You can do that in your project's settings.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mehdi.nine
                    wrote on last edited by
                    #11

                    i do this config:
                    http://upload7.ir/images/29427701088852765091.jpg

                    but same error: exesit.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Moster
                      wrote on last edited by
                      #12

                      Try a development build http://download.qt-project.org/snapshots/qt/5.1/5.1.1-rc1/backups/
                      and this time let it install android for arm in the Qt installer.

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hdehaan
                        wrote on last edited by
                        #13

                        I have exactly the same problem. The last post is not clear to me.
                        Can you explain a bit more please?

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          hdehaan
                          wrote on last edited by
                          #14

                          To be a bit more precise. When I run ant, it creates in android a libs and bin directory. In the bin there is an apk file. But as soon as I press the play button, it removes the directory bin and does not recreate it.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mehdi.nine
                            wrote on last edited by
                            #15

                            @Peacock last post i say you download qt 5.1.1 rc1 instead qt 5.1.0. it may solved our problem. i didn't test it now.

                            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