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. 'Qt for Android' configuration
Forum Update on Monday, May 27th 2025

'Qt for Android' configuration

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.4k 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
    marcel_at_work
    wrote on 6 Jul 2021, 19:39 last edited by
    #1

    Dear Community

    I am a complete newbie and after decades I want to switch from BASIC to C++ using 'Qt for Android'.
    After reading a C++, as well as Qt manual, a first desktop application starts flawlessly.

    Unfortunately, however, I can by no means say the same about setting up Android support.

    For two weeks now I've been sitting at it and have already tried everything possible, but it just doesn't want to work the way it's supposed to.

    Installed is currently:

    JDK 1.8.0_291
    NDK r21e
    Android OpenSSL Master
    cmdline-tools
    

    ... via SDK Manager:

    Android SDK Tools (Obsolete) 25.2.5 (this was a suggested solution from the net)
    Android SDK Platform Tools 31.0.2
    Android SDK Build-tools 26-30.0.3
    tools
    Android 11
    Android R - SDK Platform Android R Preview
    Android 10
    Android 4.4.2
    extras
    

    ... via the Maintainance Tool:

    Qt 6.1.1
    Qt 5.15.2
    almost all 'Developer and Designer Tools'.
    
    Under Settings>Devices, 'Platform-SDK is installed' and 'For all installed Qt versions, all necessary packages are installed' are shown as incorrect.
    
    The resulting generated dialog shows the following missing packages in the Android SDK installation:
    
    build-tools;30.0.2
    ndk;21.3.6528147
    platform-tools
    platforms;android-30
    cmdline-tools;latest
    extras;google;usb_driver, so exactly the ones I installed manually?!
    
    Under Kits>Qt versions, all 'Qt 6' applications as well as 'Qt 5.15.2 for Android' show the following error:
    
    'No compiler can generate code for this Qt version. Please set up a compiler suitable for [...] unknown-linux-android-elf-unknown'.
    

    By the way, my system is Windows 7, x64.

    It would be really fantastic if someone could help me before I throw the computer out the window. :-)

    Many greetings from Switzerland

    Marcel

    S K 2 Replies Last reply 7 Jul 2021, 05:26
    0
    • M marcel_at_work
      6 Jul 2021, 19:39

      Dear Community

      I am a complete newbie and after decades I want to switch from BASIC to C++ using 'Qt for Android'.
      After reading a C++, as well as Qt manual, a first desktop application starts flawlessly.

      Unfortunately, however, I can by no means say the same about setting up Android support.

      For two weeks now I've been sitting at it and have already tried everything possible, but it just doesn't want to work the way it's supposed to.

      Installed is currently:

      JDK 1.8.0_291
      NDK r21e
      Android OpenSSL Master
      cmdline-tools
      

      ... via SDK Manager:

      Android SDK Tools (Obsolete) 25.2.5 (this was a suggested solution from the net)
      Android SDK Platform Tools 31.0.2
      Android SDK Build-tools 26-30.0.3
      tools
      Android 11
      Android R - SDK Platform Android R Preview
      Android 10
      Android 4.4.2
      extras
      

      ... via the Maintainance Tool:

      Qt 6.1.1
      Qt 5.15.2
      almost all 'Developer and Designer Tools'.
      
      Under Settings>Devices, 'Platform-SDK is installed' and 'For all installed Qt versions, all necessary packages are installed' are shown as incorrect.
      
      The resulting generated dialog shows the following missing packages in the Android SDK installation:
      
      build-tools;30.0.2
      ndk;21.3.6528147
      platform-tools
      platforms;android-30
      cmdline-tools;latest
      extras;google;usb_driver, so exactly the ones I installed manually?!
      
      Under Kits>Qt versions, all 'Qt 6' applications as well as 'Qt 5.15.2 for Android' show the following error:
      
      'No compiler can generate code for this Qt version. Please set up a compiler suitable for [...] unknown-linux-android-elf-unknown'.
      

      By the way, my system is Windows 7, x64.

      It would be really fantastic if someone could help me before I throw the computer out the window. :-)

      Many greetings from Switzerland

      Marcel

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 7 Jul 2021, 05:26 last edited by
      #2

      @marcel_at_work said in 'Qt for Android' configuration:

      Windows 7

      This OS is not supported for development anymore.Perhaps this is why package detection is failing?

      (Z(:^

      M 1 Reply Last reply 7 Jul 2021, 17:55
      0
      • M marcel_at_work
        6 Jul 2021, 19:39

        Dear Community

        I am a complete newbie and after decades I want to switch from BASIC to C++ using 'Qt for Android'.
        After reading a C++, as well as Qt manual, a first desktop application starts flawlessly.

        Unfortunately, however, I can by no means say the same about setting up Android support.

        For two weeks now I've been sitting at it and have already tried everything possible, but it just doesn't want to work the way it's supposed to.

        Installed is currently:

        JDK 1.8.0_291
        NDK r21e
        Android OpenSSL Master
        cmdline-tools
        

        ... via SDK Manager:

        Android SDK Tools (Obsolete) 25.2.5 (this was a suggested solution from the net)
        Android SDK Platform Tools 31.0.2
        Android SDK Build-tools 26-30.0.3
        tools
        Android 11
        Android R - SDK Platform Android R Preview
        Android 10
        Android 4.4.2
        extras
        

        ... via the Maintainance Tool:

        Qt 6.1.1
        Qt 5.15.2
        almost all 'Developer and Designer Tools'.
        
        Under Settings>Devices, 'Platform-SDK is installed' and 'For all installed Qt versions, all necessary packages are installed' are shown as incorrect.
        
        The resulting generated dialog shows the following missing packages in the Android SDK installation:
        
        build-tools;30.0.2
        ndk;21.3.6528147
        platform-tools
        platforms;android-30
        cmdline-tools;latest
        extras;google;usb_driver, so exactly the ones I installed manually?!
        
        Under Kits>Qt versions, all 'Qt 6' applications as well as 'Qt 5.15.2 for Android' show the following error:
        
        'No compiler can generate code for this Qt version. Please set up a compiler suitable for [...] unknown-linux-android-elf-unknown'.
        

        By the way, my system is Windows 7, x64.

        It would be really fantastic if someone could help me before I throw the computer out the window. :-)

        Many greetings from Switzerland

        Marcel

        K Offline
        K Offline
        KroMignon
        wrote on 7 Jul 2021, 05:34 last edited by
        #3

        @marcel_at_work For Qt 5.15 you need JDK 11 or newer (cf. https://doc.qt.io/qt-5/android-getting-started.html)

        Do you using Qt Creator?

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        1 Reply Last reply
        1
        • S sierdzio
          7 Jul 2021, 05:26

          @marcel_at_work said in 'Qt for Android' configuration:

          Windows 7

          This OS is not supported for development anymore.Perhaps this is why package detection is failing?

          M Offline
          M Offline
          marcel_at_work
          wrote on 7 Jul 2021, 17:55 last edited by marcel_at_work 7 Jul 2021, 19:57
          #4

          @KroMignon

          For Qt 5.15 you need JDK 11 or newer (cf. https://doc.qt.io/qt-5/android-getting-started.html)
          Do you using Qt Creator?

          What exactly does that mean? I get a little confused with the terms: JDK Platform-tools Versions, JDK Build-tools Versions, Java Versions, Java Build Versions?

          I thought 'JDK 11' meant the Java version?

          Yes, Qt Creator.

          @sierdzio

          This OS is not supported for development anymore.

          I hope you are wrong?!

          Many greetings,

          Marcel

          S 1 Reply Last reply 7 Jul 2021, 20:35
          0
          • M marcel_at_work
            7 Jul 2021, 17:55

            @KroMignon

            For Qt 5.15 you need JDK 11 or newer (cf. https://doc.qt.io/qt-5/android-getting-started.html)
            Do you using Qt Creator?

            What exactly does that mean? I get a little confused with the terms: JDK Platform-tools Versions, JDK Build-tools Versions, Java Versions, Java Build Versions?

            I thought 'JDK 11' meant the Java version?

            Yes, Qt Creator.

            @sierdzio

            This OS is not supported for development anymore.

            I hope you are wrong?!

            Many greetings,

            Marcel

            S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 7 Jul 2021, 20:35 last edited by
            #5

            @marcel_at_work said in 'Qt for Android' configuration:

            @KroMignon

            For Qt 5.15 you need JDK 11 or newer (cf. https://doc.qt.io/qt-5/android-getting-started.html)
            Do you using Qt Creator?

            What exactly does that mean? I get a little confused with the terms: JDK Platform-tools Versions, JDK Build-tools Versions, Java Versions, Java Build Versions?

            I thought 'JDK 11' meant the Java version?

            Yes - and you have Java version 8 (JDK 1.8.0), while Qt 5.15 requires version 11.

            Yes, Qt Creator.

            @sierdzio

            This OS is not supported for development anymore.

            I hope you are wrong?!

            I am not - https://doc.qt.io/qt-6/windows.html

            But if you are using Qt 5.15, you should be fine - https://doc.qt.io/qt-5/windows.html

            (Z(:^

            1 Reply Last reply
            0

            1/5

            6 Jul 2021, 19:39

            • Login

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