QT Creator fails to download Android SDKs [Ubuntu 24.10]
-
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 ?".
When I click "okay" it tries to download the package but fails with this error message.
It also creates an empty folder named "latest-2" in path $HOME/Android/Sdk/cmdline-tools/
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"
-
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.
-