Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Setup Qt for android on mac
Forum Updated to NodeBB v4.3 + New Features

Setup Qt for android on mac

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 4 Posters 2.1k 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.
  • Q Offline
    Q Offline
    Qims
    wrote on 4 Apr 2020, 19:35 last edited by
    #1

    Hello everyone !

    I want to build an android mobile app using Qt but I don't get the "Android Settings" right.

    Here is what is not working:
    Capture d'écran 2020-04-04 21.20.43.png

    Capture d'écran 2020-04-04 21.23.53.png

    Capture d'écran 2020-04-04 21.23.14.png

    • SDK tools and Platform SDK are not found,
    • SDK manager: everything is disabled,
    • and therefore I can't select any "Android build SDK".

    The structure of my "Android" folder is as follow:
    Capture d'écran 2020-04-04 21.27.27.png

    I tried several jdk, installed several SDK and NDK, tried to install them using Android Studio, then without Android Studio by using the sdkmanager (cmdline-tools noted as (latest), several version of Qt Creator... But nothing seems to work.

    What am I missing ?

    Currently, my setup is:

    • Qt Creator 4.11.2, based on Qt 5.14.2,
    • Android Studio is not installed anymore,
    • Using a Mac under 10.15.3 (Catalina).

    Thanks you very much !

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Apr 2020, 19:38 last edited by
      #2

      Hi and welcome to devnet,

      There have been several similar questions these past days. Please search the forum.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qims
        wrote on 5 Apr 2020, 11:23 last edited by Qims 4 May 2020, 11:59
        #3

        Hi !

        Thank you for your answer.
        I did search the forum before posting but nothing seems to help for now.

        According to this https://doc.qt.io/qt-5/androidgs.html, I tried the r21 NDK this morning but nothing changed.
        Also tried with r10e NDK (and others) and older platforms, build tools, like android-15 or android-25 but still same results.

        Also tried with Qt 5.13.2 but same results (except maybe that with the 5.14.2 I got only 2 kits with the same name "Android for armeabi-v7a,arm64-v8a,x86,x86_64", one with the "Clang" compiler (definde as default) and the other one with "Android Clang", but it seems I can't change their names).

        K 1 Reply Last reply 5 Apr 2020, 21:14
        0
        • Q Qims
          5 Apr 2020, 11:23

          Hi !

          Thank you for your answer.
          I did search the forum before posting but nothing seems to help for now.

          According to this https://doc.qt.io/qt-5/androidgs.html, I tried the r21 NDK this morning but nothing changed.
          Also tried with r10e NDK (and others) and older platforms, build tools, like android-15 or android-25 but still same results.

          Also tried with Qt 5.13.2 but same results (except maybe that with the 5.14.2 I got only 2 kits with the same name "Android for armeabi-v7a,arm64-v8a,x86,x86_64", one with the "Clang" compiler (definde as default) and the other one with "Android Clang", but it seems I can't change their names).

          K Offline
          K Offline
          KroMignon
          wrote on 5 Apr 2020, 21:14 last edited by
          #4

          @Qims You have to install Android SDK Tools. Please take a look to this post: https://forum.qt.io/post/585927, this will show you how to do it.

          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
          • Q Offline
            Q Offline
            Qims
            wrote on 6 Apr 2020, 18:59 last edited by
            #5

            Hi !

            Thank you, it seems that SDK tools is now detected !
            But "SDK manager runs" is not found (red cross) anymore and "Platform SKD installed" is still not found.

            I tried several version of jdk (1.8) but their not detected, i am currently using:

            java -version:
            java version "1.8.0_241"
            Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
            Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

            What is installed:
            Capture d'écran 2020-04-06 20.51.37.png

            • NDK r10e installed separately.

            The SDK Manager is now clickable in Qt Creator but still no displayed package.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Surajkumar Tanurkar
              wrote on 13 Apr 2020, 05:24 last edited by
              #6

              i have the same problem in my kits Android is not showing,if it shows it does configure for the project.
              help me out
              thank you!!

              1 Reply Last reply
              0
              • Q Offline
                Q Offline
                Qims
                wrote on 3 May 2020, 17:21 last edited by
                #7

                Hi !

                Still have the problem, does anyone as a solution ?

                I found this link : https://doc.qt.io/qt-5/supported-platforms.html about the Android build environment.
                It is written "mac os 10.13", does it mean that we have to use this specific version of the OS or does it mean this OS and higher to build android apps ?

                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