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 fails to download Android SDKs [Ubuntu 24.10]
QtWS25 Last Chance

QT Creator fails to download Android SDKs [Ubuntu 24.10]

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 1 Posters 237 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.
  • D Offline
    D Offline
    Dodoshka
    wrote on last edited by
    #1

    OS: Ubuntu 24.10 (VM)
    Same issue happens on Arch Linux.

    When I go to edit/devices/android, I get a message saying "Android SDK is missing a package, do you want for QT Creator to install it ?". Screenshot From 2024-11-30 09-35-42.png

    When I click "okay" it tries to download the package but fails with this error message. Screenshot From 2024-11-30 09-40-55.png

    It also creates an empty folder named "latest-2" in path $HOME/Android/Sdk/cmdline-tools/ Screenshot From 2024-11-30 09-46-24.png

    Same issue happens when I try to download a System Image package, let's say "Google APIs ARM 64 v8a System Image"

    My guess is, QT Creator is trying to use wrong Sdkmanager, as I've tried to use sdkmanager in terminal, but it had same issue. I tried to fix the issue by using "which sdkmanager" command in the terminal which lead me to Sdkmanager which wasn't in $HOME/Android/Sdk/cmdline-tools/latest , but in /usr/lib/android-sdk/cmdline-tools/9.0/bin . I deleted the sdkmanager from this location and replaced it with a symlink to the correct one ($HOME/.../latest) and sdkmanager started to work in terminal.

    I am new to Linux and do not know how to fix this issue, any help will be appreciated. Thanks !

    #NOTE The cmdline-tools 9.0 were installed via "apt-get install"

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dodoshka
      wrote on last edited by Dodoshka
      #2

      Update: I deleted cmdline-tools 9.0 just in case, tried to debug qt creator afterwards, it used the right one. So I tried to use sdkmanager in the terminal again, finds out it doesn't work unless I use it with Sudo. Then I changed permissions of the sdkmanager to be all rwx, and it still doesn't work unless I Sudo use it. I don't know what is going on.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dodoshka
        wrote on last edited by
        #3

        SOLVED: I had to type this command:
        sudo chmod $USER:$USER $ANDROID_SDK_ROOT
        I hope this will help unfortunate people like me, who couldn't figure this out for days or even months.

        1 Reply Last reply
        1
        • D Dodoshka has marked this topic as solved on

        • Login

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