[FIXED] Can not set android clang compilers for Qt Android on Ubuntu

Issue

I installed Qt Android 5.15.2 on Ubuntu but there is problem with the compilers. This is what I have set:

enter image description here

And here is what QtCreator detects as compilers:

enter image description here

The first error is displayed here in the Qt version tab:

enter image description here

and also in the Kit tab I see this errors no matter which compilers I set from the available:

enter image description here

Why I got this errors? Can please someone that has android kit on Ubuntu already set, tell me which compilers is using and which paths are for the compilers?
I will add more information for the current compilers or kits if needed.

Solution

The problem is that you are trying to use a x86 compiler for Android. You need to install the specific compiler from the Android SDK/NDK. So the good news is that you might be only missing one step (step 2 below)

I tried to install from the Ubuntu stock packages. That was impossible to get to work.

I was able to set it up in the following way:

  1. Download the Qt online installer. Login and DO NOT choose individual packages, install Qt for desktop and Qt for mobile (check the last 3 options). This will install Qt 6 + QtCreator

  2. Run QtCreator after everything finishes (+1.2Gb download). Go to Tools>Options>Devices>Android. Check that Java SDK is ok. On the Android section, choose "Set up Android". Accept all licenses.

This is what you should see in the end:

enter image description here

Answered By – user8143588

Answer Checked By – David Goodson (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published