Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problem in setting up android with qt 6.11
Qt 6.11 is out! See what's new in the release blog

Problem in setting up android with qt 6.11

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 271 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.
  • F Offline
    F Offline
    fireheart071
    wrote last edited by
    #1

    Hi everyone,
    I am struggling to configure the Android development environment in Qt 6.11 using Qt Creator. The settings panel is showing a mix of green checkmarks and red X marks, and I cannot seem to bypass it.

    afeab27a-4d8b-4f2d-b55b-9b204d43a214-image.png

    Also, SDK manager shows nothing
    f175c26b-14d8-4b14-883c-bfb1f256a9b1-image.png

    Despite the tool working flawless natively, Qt Creator refuses to recognize that it runs, which in turn blocks it from detecting the Platform SDK or downloading essential packages. I have already tried resetting the SDK path fields inside the UI to clear the cache, but the error persists.
    Has anyone encountered this specific parser or execution block in Qt Creator?

    Any guidance would be greatly appreciated!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fireheart071
      wrote last edited by
      #2

      Solved! for anyone else who hits this:

      Root cause: Google's latest Command-line Tools replaced sdkmanager with a new "Android CLI" wrapper. Running sdkmanager --version now prints a deprecation warning and a version like 1.0.16261425 (Android CLI) instead of the old-style number. Qt Creator can't parse that new format, so it reports "Command-line Tools runs" as failed — which also blocks Platform SDK detection and package installation.

      Fix: downgrade to an older build.

      Delete <SDK>/cmdline-tools/latest
      Download: https://dl.google.com/android/repository/commandlinetools-win-11076708_latest.zip
      Extract, rename the cmdline-tools folder to latest, place at <SDK>/cmdline-tools/latest
      Confirm sdkmanager.bat --version shows a plain number (not "Android CLI")
      Re-open Qt Creator's Android settings and hit Update - all checks pass

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #3

        Hi and welcome to devnet,

        Sounds like you have encountered the same situation as described in QTCREATORBUG-34905 which is fixed for 20.0.2. If you want you can use the snapshot.
        @ekkescorner confirmed it works.

        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

        • Login

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