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 Creator and Android NDK
Forum Updated to NodeBB v4.3 + New Features

Qt Creator and Android NDK

Scheduled Pinned Locked Moved Solved Mobile and Embedded
15 Posts 2 Posters 2.3k Views 2 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.
  • P Padlock

    Taking the information at https://doc.qt.io/qt-5/android-getting-started.html would mean SDK and NDK versions should both be correct.

    K Offline
    K Offline
    koahnig
    wrote on last edited by
    #5

    @Padlock said in Qt Creator and Android NDK:

    Taking the information at https://doc.qt.io/qt-5/android-getting-started.html would mean SDK and NDK versions should both be correct.

    Yes, I was just checking this.

    I do not remember what I had used with ndk 10e, possibly sdk 23.something. I have changed the clang versions and I would try to get sdk and ndk version release dates closer together. Just for minimizing issues.

    Currently I am using Qt5.12.7 with the appropriate ndk. That works for me.
    With Qt5.14.1 I had issues but apparently it messed up during installation. However others seem to be fine also with 5.14.

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

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Padlock
      wrote on last edited by
      #6

      This might be a very silly question but how do I change the SDK version?

      K 1 Reply Last reply
      0
      • P Padlock

        This might be a very silly question but how do I change the SDK version?

        K Offline
        K Offline
        koahnig
        wrote on last edited by
        #7

        @Padlock

        I installed AndroidStudio which has SDK Manager under tools. That's what I am using. IIRC I have seen or even used a stand-alone SDK manager. That's for windows.

        The sdk is installed under AppData/local which I copy to another disk for keeping track of versions. However, I might be too cautious.

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

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Padlock
          wrote on last edited by
          #8

          Yes, the SDK is installed there but I was under the impression that that folder contains many different SDKs. I got several installed. But how would I tell Qt Creator which one to use?

          K 1 Reply Last reply
          0
          • P Padlock

            Yes, the SDK is installed there but I was under the impression that that folder contains many different SDKs. I got several installed. But how would I tell Qt Creator which one to use?

            K Offline
            K Offline
            koahnig
            wrote on last edited by
            #9

            @Padlock

            under platforms there seem to be the different sdk versions, if I am not mistaken. At least that matches API levels I have installed.

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

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Padlock
              wrote on last edited by
              #10

              Do you mean SDK Platforms in Android Studio?
              This matches my configuration too with one exception.
              But how do I tell Qt Creator which one of those to use?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Padlock
                wrote on last edited by
                #11

                I think this page (https://doc.qt.io/qtcreator/creator-developing-android.html) is supposed to contain this information but I can't find anything.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #12

                  Sorry beyond my experience.

                  in qt creator Options->Devices->Android at the bottom there is also avd and sdk manager, but you cannot change there.
                  The only possible way I see at the moment would be deinstalling and just leave the last which is ackward.

                  However, I am guy trying to stay with something that works. Sometimes testing with switching between different versions forth and back. It drove me nuts that a simple update in AndroidStudio killed essentially my toolchains.

                  As explained above, I have copied the Android stuff onto a separate disk. Unfortunately Qt creator is not helpful enough in changing toolchains for Android, but I think the true reason is Android where they think that one has to use the latest versions.

                  That is what I am using at the moment:
                  97ef4a60-bb87-4ed1-9b6f-7d57d88086b6-image.png

                  I have another set of folders for Qt5.14.1. I know that I have duplicated a lot there, but I got my toolchains finally to work. That's what counts. Renaming 2 folders under devices and I have the other toolchain. It is stupid, but works.

                  BTW Qt5.12.1 and Qt5.12.7 may use the same sdk and ndk.

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

                  1 Reply Last reply
                  1
                  • P Offline
                    P Offline
                    Padlock
                    wrote on last edited by
                    #13

                    Thanks for your suggestion. I'll probably end up doing the same unless we overlooked something and there is another way to feed Qt Creator with the desired SDK version. I still haven't given up hope that it's not that complicated. ;-)

                    K 1 Reply Last reply
                    0
                    • P Padlock

                      Thanks for your suggestion. I'll probably end up doing the same unless we overlooked something and there is another way to feed Qt Creator with the desired SDK version. I still haven't given up hope that it's not that complicated. ;-)

                      K Offline
                      K Offline
                      koahnig
                      wrote on last edited by
                      #14

                      @Padlock said in Qt Creator and Android NDK:

                      Thanks for your suggestion. I'll probably end up doing the same unless we overlooked something and there is another way to feed Qt Creator with the desired SDK version. I still haven't given up hope that it's not that complicated. ;-)

                      I am very happy getting proofed wrong. ;)

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

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Padlock
                        wrote on last edited by
                        #15

                        I don't know if there's another way but yours surely worked for me. Thanks a lot!

                        1 Reply Last reply
                        1

                        • Login

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