Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. error setting up Qt for Android
Forum Updated to NodeBB v4.3 + New Features

error setting up Qt for Android

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 3 Posters 1.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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi all -

    I'm trying to enable the Android platform within Creator, and I'm getting several errors. My Devices page looks like this:
    creator.PNG
    When I run the SDK Manager, it tells me several things are missing, and attempts to install them. But I keep getting the error "The operation requires user interaction..." as seen below.
    android.PNG
    I can't find the sdkmanager (the path to it doesn't seem to be added to my $PATH variable), and I wouldn't know what to do with it to correct these errors anyway.

    Can someone tell me what I'm missing here? Windows 10, Creator 8.0.2.

    Thanks...

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      you can see your SDK requires Java 1.8, but you have jdk 11.0. Mismatch! I guess your SDK version is wrong. I have 30 and 31 which match jdk 11.
      And SDK location normally has Sdk, yours has only Android Studio which may not be the right dir for SDK. My Linux settting is like: /opt/thirdParties/android/Sdk

      mzimmersM 1 Reply Last reply
      1
      • JoeCFDJ JoeCFD

        you can see your SDK requires Java 1.8, but you have jdk 11.0. Mismatch! I guess your SDK version is wrong. I have 30 and 31 which match jdk 11.
        And SDK location normally has Sdk, yours has only Android Studio which may not be the right dir for SDK. My Linux settting is like: /opt/thirdParties/android/Sdk

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        @JoeCFD when I try to update my SDK (see window), I get the error I mentioned above:
        sdk.PNG
        Did I select the wrong JDK to begin with?

        Thanks...

        1 Reply Last reply
        0
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          You can use Android Studio to install SDK for Android 11 and 12.
          under:
          Tools->SDK Manager->Appearance & Behavior->System Settings->Android SDK
          you select Android 11 and 12 to install.

          mzimmersM 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            You can use Android Studio to install SDK for Android 11 and 12.
            under:
            Tools->SDK Manager->Appearance & Behavior->System Settings->Android SDK
            you select Android 11 and 12 to install.

            mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #5

            @JoeCFD you were right -- the installer placed the SDK into:

            C:\Users\Michael.Zimmers\AppData\Local\Android\Sdk
            

            (This is an annoying feature of Windows that I'm still learning to remember.)

            Once I got the correct SDK location specified in Creator, the rest all worked itself out:

            creator.PNG

            Thanks for the help...

            1 Reply Last reply
            0
            • JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #6

              This place is indeed annoying.

              1 Reply Last reply
              0
              • cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on last edited by
                #7

                At setup_android.cmake I have a CMake script that downloads the JDK and Android SDK via CMake.

                Usage is:

                cmake -P setup_android.cmake
                

                Works cross-platform. I tend to keep it up to date with Android's sdk_definitions.json, but you can have a look there if things do not match.

                Having control and transparency over what's getting installed results in less confusion.

                I don't know why the Android settings dialog doesn't have the same functionality for the JDK like it does for the Android SDK.

                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