Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Newbie question: Warning Device type is not supported by Qt version
Background: I am a retired programmer locked down under COVID rules in the Philippines, so I am using my enforced idle time to reskill after a 15 year break. This is my first time with Qt and my goal is to be able to write Android apps as well as desktop applications.
I run Fedora 33 Linux. I had previously installed Qt4 and Qt5 components from Fedora repository, so I suspect my problems now may be due to a mangled environment, but I don't know how to proceed from where I am and I would greatly appreciate guidance from the assembled brains trust.
I have just installed Qt Creator from the Qt site. My version is 4.14.0 and my Qt version is 5.15.2
I created a sample project - addressbook - from the samples provided. When I attempt to build, I get this error message:
The installed SDK tools version (3.0) does not include Gradle scripts. The minimum Qt version required for Gradle build to work is 5.9.0/5.6.3 Error while building/deploying project addressbook (kit: Android) When executing step "Build Android APK"
When I hover over the Android Build menu option, an information popup appears and it starts with:
Warning Device type is not supported by Qt version
I have followed ll the paths I have been able to find through Google searches, but cannot work out what has gone wrong.
The attached screenshots may contain a clue for someone more experienced than me.
Many thanks in advance for any help.
@Doug-Hutcheson The Qt version you configured looks like one for X86_64 built with GCC, not Android (Android uses Clang as far as I know). How did you install it?
@jsulm thank you very much for your response. Having the wrong tools would certainly create problems for me.
I used the online installer which I downloaded from the Qt site and ran on my machine. It is called qt-unified-linux-x64-4.0.1-1-online.run. Is there a different way to install that I missed? I definitely want to be able to create Android apps, so I'm quite happy to start again from scratch if I have installed the wrong thing. It is just a matter of me not knowing what I need.
The trouble with being a newbie is I don't know what i don't know. :)
@Doug-Hutcheson This is the online installer and that is totally OK. But which exact Qt version did you select in the installer?
And also: Qt Online Installer installs Qt in the user home directory (subdirectory Qt), not under /usr. So, /usr/bin/qmake-qt5 is almost certainly pointing to Qt installed using your Linux distribution packages.
Open the Qt Maintenance Tool from your Qt installation (/home/USER_NAME/Qt) and check which Qt version is selected. You need one for Android.
@jsulm Ah! Now we are getting somewhere. I am at the end of a VERY slow WiFi internet link, so it will take a long time for the installer to download the metadata again. Regional Philippines areas are very poorly served by the telcos and I usually cannot even browse the internet during daytime hours. If I am lucky, I will get about 10Kbps download: if I am unlucky I will get zero. :[
There is a vague promise we will see cable internet this year. As you can imagine, I wait with great hope.
I will start now, but it might literally be hours before I can complete this request.
@Doug-Hutcheson But you can already check whether you installed any Qt version: check the content of the /home/USER_NAME/Qt folder.
@jsulm sorry for the delay - as a new user, I can only post once every 600 seconds ... !
As expected, the link is slow. I opened the Maintenance tool ten minutes ago and it is still performing the first step, the licence pre-conditions check ...
This is the content of that directory. What should I be looking for?
@Doug-Hutcheson You did not install Qt, only QtCreator
@jsulm Doh! (Slaps forehead). That would explain a lot.
There are many items to choose from. I am inclined to bite the bullet and go straight to Qt6 in that case - is that a wise choice?
is that a wise choice?
I would not do that yet as some modules are not yet available in Qt6 and will come in later point releases. I suggest to go for current Qt5 (5.15.2).
@jsulm thank you so much for your advice. I will do exactly that and come back if I have further problems.
The Maintenance tool is still at the first step ... 28 minutes so far ... I expect this will have to be another overnight job, as I do get marginally usable speeds about 2Mbps between about 1am and 5am (currently 4:07pm).
Your time taken to help me is greatly appreciated. :D
@Doug-Hutcheson I restarted the process at midnight. For most of the past hour it has been dominating the cpu preparing metadata for download. I do not recall ever seeing my Core i7 under such load for so long. interesting and i am curious.
@Doug-Hutcheson All cured by rebooting. After a reboot it took less than 2 minutes to get to the point where I could select Qt and start the installation. Sigh.
Doug Hutcheson last edited by Doug Hutcheson
@Doug-Hutcheson In about 4 hours my system has downloaded 36% of Qt 5.15.2, but bandwidth is now rapidly evaporating. It looks like another all-nighter tonight as I babysit the download through inevitable communications glitches.
I am not sure how much has been downloaded as I cannot find the files in my home directory, but I'm sure they are there somewhere.
As an aside, I clicked on Qt 5.15.2 and hit the button without looking at what was to download. It seems I am getting all the source and debug files for both RHEL and openSUSE, which is overkill as I have no plans to build Qt on my laptop, but never mind.
Altogether a reasonably productive night but still no definitive answer to whether my problem has been solved, although I have every confidence my project will indeed compile correctly when the download has finished. As the Internet will be unusable for the rest of the day, I shall now take a well deserved nap for a few hours.
As an aside, I clicked on Qt 5.15.2 and hit the button without looking at what was to download
You should be careful when selecting what to install: if you select whole Qt version you will get many different Qt builds (for example Android). So, only select what you really need.
I heard (did not check by myself yet) that newest installer/maintenance tool allow one to select mirror from which data is downloaded. Maybe that could help you?
@jsulm That seems to be what has happened. I'm developing on an Intel x86_64 box and want to develop for desktop and for Android, so what am i looking for when i choose from the offerings? (The process remained running all day for almost zero progress ... )
@Doug-Hutcheson Expand the Qt version you want to install. Select Android and desktop version. On Windows you have to decide whether you want to use MSVC or MinGW as compiler and then select the desktop version accordingly.
@jsulm Thanks - I'll restart with the correct selection. I don't need source do I? As a total newbie, I'm not planning to work on Qt itself any time soon.
As a total newbie, I'm not planning to work on Qt itself any time soon.
Then you don't need the sources. You can install them later using Qt Maintenance Tool if you would need them.
@jsulm Many thanks for putting me straight. I owe you a virtual beer. :)
@Doug-Hutcheson success! I can now get on with writing and debugging.
Pablo J. Rogina last edited by
if your issue is solved, please don't forget to mark your post as such!