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. System requirements for Android development
QtWS25 Last Chance

System requirements for Android development

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidavd performancesystem specs
11 Posts 4 Posters 3.8k 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.
  • K Offline
    K Offline
    koahnig
    wrote on 7 Jun 2017, 08:34 last edited by
    #1

    Recently, I started another attempt for Qt based Android development.

    The start could have been a little smoother to say the least, but at least with Qt 5.9 I am able to create and run applications with a fairly low API level 17. However, from comfortable development I am still miles away. At the moment the best seems to create an Android application and copy to a device and start it. Other options like creating the application and testing on an AVD is a nightmare, because of missing performance.

    I guess overall it is the problem of the system requirements at least on windows. On the download page of Android studio one can find a minimum requirement of 3 GB and 8GB (recommended) plus an additional 1 GB for AVDs.

    I like to get some feedback on system parameters of some users especially in Android development and their experience.

    I would appreciate your feedback on:
    OS
    RAM
    SSD
    HDD
    and other parameters playing a role in your development.

    Thanks in advance.

    Vote the answer(s) that helped you to solve your issue(s)

    E 1 Reply Last reply 7 Jun 2017, 11:21
    0
    • K koahnig
      7 Jun 2017, 08:34

      Recently, I started another attempt for Qt based Android development.

      The start could have been a little smoother to say the least, but at least with Qt 5.9 I am able to create and run applications with a fairly low API level 17. However, from comfortable development I am still miles away. At the moment the best seems to create an Android application and copy to a device and start it. Other options like creating the application and testing on an AVD is a nightmare, because of missing performance.

      I guess overall it is the problem of the system requirements at least on windows. On the download page of Android studio one can find a minimum requirement of 3 GB and 8GB (recommended) plus an additional 1 GB for AVDs.

      I like to get some feedback on system parameters of some users especially in Android development and their experience.

      I would appreciate your feedback on:
      OS
      RAM
      SSD
      HDD
      and other parameters playing a role in your development.

      Thanks in advance.

      E Offline
      E Offline
      Eeli K
      wrote on 7 Jun 2017, 11:21 last edited by
      #2

      @koahnig Pentium 3.10GHz, 4G, SSD, 64-bit Win7. Another machine: Core Duo (2.somethingGHz IIRC), 4G, SSD, 64-bit Linux. Would I recommend this for the Android emulator? No. You should have at least 8G of memory. SSD is very good, much better than an old HDD. On the other hand, if you have e.g. 16G RAM (maybe even 8G would be enough) it will probably be used as disk cache and subsequent runs are quick. The processor isn't so critical IMO, although it of course affects the emulator startup time. The old adage of memory running out first and making the machine a pain to use is still true.

      Luckily it's possible with Qt, in many cases, to develop mostly on desktop and use the mobile version only for testing.

      1 Reply Last reply
      1
      • E Offline
        E Offline
        Eddy
        wrote on 7 Jun 2017, 11:53 last edited by
        #3

        Hi Koahnig,

        I'm still using an older installation, but Qt5.9 is up to date ;-). Everything keeps on working , so why changing a working solution...

        Here are the necessities I installed :
        jdk1.8.0_60
        apache-ant-1.9.6
        NDK r10e
        SDK manager 24.3.4

        My testing device is a Samsung Galaxy S5
        I used AcerZ150 4.2.2 also, but I don't have that device at hand anymore.

        win 8.1 64 bit
        8GB RAM
        running from Fat partition (not SSD )

        It takes about 1 minute to build and deploy a simple Qt Quick controls 2 based application.

        I never use the AVD, because I prefer to test on the device itself. There are always differences possible with the real world.
        I tested it specially for you and it took about 3 minutes to put the same application on the AVD

        You have to
        Activate developer mode on the android device
        Enable usb debugging on you device

        I heard of some problems with the newer android installations that could be resolved using an older one.

        What device are you using? Sometimes you have to install specific drivers.

        Hope it helps.

        Eddy

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        2
        • K Offline
          K Offline
          koahnig
          wrote on 7 Jun 2017, 19:48 last edited by
          #4

          @Eddy @Eeli-K

          I have started downloading the "GBs" as recommended within our documentation here respectively I had to follow some links and they may have ended in places with different targets than initially.

          Anyway I have installed latest versions of
          Android studio
          SDK
          NDK
          Ant
          Gradle

          Some of this apparently several times, because of integration with Android studio and obscure version and obscure places to store. Together with simply adding the Qt android parts for the already installed QT lib version (5.4.2, 5.6.2 and 5.7.2). Meandering through different issues and understanding what the different parts actually are, stipulated m ycurrent knowledge. At hintsight all is more easy and the routes used unveil their flaws.

          Anyway at the end I came to the conclusion that I better try to go for the newest versions everywhere exatly when Qt 5.9.0 came out. Suddenly, there was a note that Ant is deprecated and I should use gradle. I found that NDK r14 whatever is not of use because I have found a recommendation that NDK r10e is the best and newer still have problems.

          All this on a Quad core processor in its age. Windows 10 64bit, 8 GB RAM, 1TB HDD, 0.5 TB HDD

          OK, as I see my equipment is not as outdated as I feared, but a new machine with SSD and 32 GB is in planning state.

          BTW while I was frustrated about different API levels and no possibility to get a heloo world app runing with Qt, I decided to do the same with Android studio. There I succeeded pretty fast with my hello world app. I got it to run in an AVD and on my old Google phone running Android 4.2.2. The experience gave me enough understanding to create a hello world app with Qt.

          However, the use of AVDs was/is still a kind of mystery together with Qt. First of all, some manager tells me everytime that there are x86 based AVD, which are ten times faster than ARM based stuff I am using. Anyway, I got neither to work yet. The problems I see reminded me on my problems with VirtualBox and Ubuntu some time back. Therefore, I started to check more carefully where to find system requirements.

          Thanks for your feedback and let's see, if we find other setups in the community.

          Vote the answer(s) that helped you to solve your issue(s)

          E J 2 Replies Last reply 7 Jun 2017, 21:01
          0
          • K koahnig
            7 Jun 2017, 19:48

            @Eddy @Eeli-K

            I have started downloading the "GBs" as recommended within our documentation here respectively I had to follow some links and they may have ended in places with different targets than initially.

            Anyway I have installed latest versions of
            Android studio
            SDK
            NDK
            Ant
            Gradle

            Some of this apparently several times, because of integration with Android studio and obscure version and obscure places to store. Together with simply adding the Qt android parts for the already installed QT lib version (5.4.2, 5.6.2 and 5.7.2). Meandering through different issues and understanding what the different parts actually are, stipulated m ycurrent knowledge. At hintsight all is more easy and the routes used unveil their flaws.

            Anyway at the end I came to the conclusion that I better try to go for the newest versions everywhere exatly when Qt 5.9.0 came out. Suddenly, there was a note that Ant is deprecated and I should use gradle. I found that NDK r14 whatever is not of use because I have found a recommendation that NDK r10e is the best and newer still have problems.

            All this on a Quad core processor in its age. Windows 10 64bit, 8 GB RAM, 1TB HDD, 0.5 TB HDD

            OK, as I see my equipment is not as outdated as I feared, but a new machine with SSD and 32 GB is in planning state.

            BTW while I was frustrated about different API levels and no possibility to get a heloo world app runing with Qt, I decided to do the same with Android studio. There I succeeded pretty fast with my hello world app. I got it to run in an AVD and on my old Google phone running Android 4.2.2. The experience gave me enough understanding to create a hello world app with Qt.

            However, the use of AVDs was/is still a kind of mystery together with Qt. First of all, some manager tells me everytime that there are x86 based AVD, which are ten times faster than ARM based stuff I am using. Anyway, I got neither to work yet. The problems I see reminded me on my problems with VirtualBox and Ubuntu some time back. Therefore, I started to check more carefully where to find system requirements.

            Thanks for your feedback and let's see, if we find other setups in the community.

            E Offline
            E Offline
            Eeli K
            wrote on 7 Jun 2017, 21:01 last edited by
            #5

            @koahnig I forgot that I have used only x86 binaries with AVD, so ARM version may be much much slower, too slow for my machines. But with x86 the startup time of the AVD is the bigger problem, not running the (small) application. Recently I have used real Android devices for testing. There were problems setting up AVDs, some Android versions didn't work at all, got stuck in startup or got into some problem loop. Some Android versions worked well. Sometimes after updating the tools I had to create AVDs from scratch. In general I would be happy to have 8G memory and Quad core, but the problems were elsewhere.

            Anyways, I recommend trying x86 version for more frequent development and ARM version or a real device for less frequent testing.

            1 Reply Last reply
            1
            • K koahnig
              7 Jun 2017, 19:48

              @Eddy @Eeli-K

              I have started downloading the "GBs" as recommended within our documentation here respectively I had to follow some links and they may have ended in places with different targets than initially.

              Anyway I have installed latest versions of
              Android studio
              SDK
              NDK
              Ant
              Gradle

              Some of this apparently several times, because of integration with Android studio and obscure version and obscure places to store. Together with simply adding the Qt android parts for the already installed QT lib version (5.4.2, 5.6.2 and 5.7.2). Meandering through different issues and understanding what the different parts actually are, stipulated m ycurrent knowledge. At hintsight all is more easy and the routes used unveil their flaws.

              Anyway at the end I came to the conclusion that I better try to go for the newest versions everywhere exatly when Qt 5.9.0 came out. Suddenly, there was a note that Ant is deprecated and I should use gradle. I found that NDK r14 whatever is not of use because I have found a recommendation that NDK r10e is the best and newer still have problems.

              All this on a Quad core processor in its age. Windows 10 64bit, 8 GB RAM, 1TB HDD, 0.5 TB HDD

              OK, as I see my equipment is not as outdated as I feared, but a new machine with SSD and 32 GB is in planning state.

              BTW while I was frustrated about different API levels and no possibility to get a heloo world app runing with Qt, I decided to do the same with Android studio. There I succeeded pretty fast with my hello world app. I got it to run in an AVD and on my old Google phone running Android 4.2.2. The experience gave me enough understanding to create a hello world app with Qt.

              However, the use of AVDs was/is still a kind of mystery together with Qt. First of all, some manager tells me everytime that there are x86 based AVD, which are ten times faster than ARM based stuff I am using. Anyway, I got neither to work yet. The problems I see reminded me on my problems with VirtualBox and Ubuntu some time back. Therefore, I started to check more carefully where to find system requirements.

              Thanks for your feedback and let's see, if we find other setups in the community.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 8 Jun 2017, 05:23 last edited by
              #6

              @koahnig Yes, using AVDs with Qt is sometimes a pain. I got it working somehow after poking around in the dark :-)
              Here is still room for improvement.

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

              K 1 Reply Last reply 8 Jun 2017, 10:04
              1
              • J jsulm
                8 Jun 2017, 05:23

                @koahnig Yes, using AVDs with Qt is sometimes a pain. I got it working somehow after poking around in the dark :-)
                Here is still room for improvement.

                K Offline
                K Offline
                koahnig
                wrote on 8 Jun 2017, 10:04 last edited by
                #7

                @jsulm said in System requirements for Android development:

                @koahnig Yes, using AVDs with Qt is sometimes a pain. I got it working somehow after poking around in the dark :-)
                Here is still room for improvement.

                Yes, you are right there.

                @Eeli-K said in System requirements for Android development:

                Anyways, I recommend trying x86 version for more frequent development and ARM version or a real device for less frequent testing.

                At the moment I will avoid using an x86-AVD, because all those switching forth and back is not recommended when settings are not always restored. This simply gives another dimension of confusion, because of looking up the different reasons.

                To be fair, the complexity stems from two dependent projects which are both fluctuant. The Android is changing all the time and Qt has to adapt with its environment and all its changes.

                Vote the answer(s) that helped you to solve your issue(s)

                E 1 Reply Last reply 8 Jun 2017, 13:48
                1
                • K koahnig
                  8 Jun 2017, 10:04

                  @jsulm said in System requirements for Android development:

                  @koahnig Yes, using AVDs with Qt is sometimes a pain. I got it working somehow after poking around in the dark :-)
                  Here is still room for improvement.

                  Yes, you are right there.

                  @Eeli-K said in System requirements for Android development:

                  Anyways, I recommend trying x86 version for more frequent development and ARM version or a real device for less frequent testing.

                  At the moment I will avoid using an x86-AVD, because all those switching forth and back is not recommended when settings are not always restored. This simply gives another dimension of confusion, because of looking up the different reasons.

                  To be fair, the complexity stems from two dependent projects which are both fluctuant. The Android is changing all the time and Qt has to adapt with its environment and all its changes.

                  E Offline
                  E Offline
                  Eddy
                  wrote on 8 Jun 2017, 13:48 last edited by Eddy 6 Aug 2017, 14:12
                  #8

                  @koahnig

                  You could ask also on the Android google group : android-qt at googlegroups . com
                  Be aware this is mostly for testing new versions of Qt on Android. Maybe they know some workarounds for specific problems.

                  Bogdan Vatra himself looks there and answers promptly in my experience. Nevertheless there is not much activity there lately, but worth a try I think.

                  Eddy

                  Qt Certified Specialist
                  www.edalsolutions.be

                  K 1 Reply Last reply 8 Jun 2017, 13:53
                  0
                  • E Eddy
                    8 Jun 2017, 13:48

                    @koahnig

                    You could ask also on the Android google group : android-qt at googlegroups . com
                    Be aware this is mostly for testing new versions of Qt on Android. Maybe they know some workarounds for specific problems.

                    Bogdan Vatra himself looks there and answers promptly in my experience. Nevertheless there is not much activity there lately, but worth a try I think.

                    Eddy

                    K Offline
                    K Offline
                    koahnig
                    wrote on 8 Jun 2017, 13:53 last edited by
                    #9

                    @Eddy

                    Thanks for your hint to Android google group.

                    I will probably wait a bit until my learning curve settles a bit more.

                    BTW: your link seems to be broken.

                    Vote the answer(s) that helped you to solve your issue(s)

                    E 1 Reply Last reply 8 Jun 2017, 14:12
                    0
                    • K koahnig
                      8 Jun 2017, 13:53

                      @Eddy

                      Thanks for your hint to Android google group.

                      I will probably wait a bit until my learning curve settles a bit more.

                      BTW: your link seems to be broken.

                      E Offline
                      E Offline
                      Eddy
                      wrote on 8 Jun 2017, 14:12 last edited by Eddy 6 Aug 2017, 14:13
                      #10

                      @koahnig said in System requirements for Android development:

                      BTW: your link seems to be broken.

                      Sorry for that, I used a link out of habit ;-)
                      Edited in the post above

                      Qt Certified Specialist
                      www.edalsolutions.be

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on 9 Jun 2017, 20:20 last edited by
                        #11

                        Memory upgrade seems to help with my AVD issue.

                        However, I am not completely sure why. The system has now 16 GB instead of 8 GB, but task manager shows a little less than 8GB used. Probably some parts used by win 10 are not properly listed respectively my interpretation is not completely correct.

                        Anyway, the system has been simply 8GB memory added. There were no other changes required and suddenly the AVD start succeeded. This is despite the fact that I still have an error message

                        The command "C:\Users\...\AppData\Local\Android\sdk\platform-tools\adb.exe" terminated with exit code 1.
                        

                        This is an AVD for ARM as I require for my Google phone. It consumes a 1.2 GB and has a reserved 2 GB according to task manager.

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        1

                        10/11

                        8 Jun 2017, 14:12

                        • Login

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