QT Version reports failed to detect ABIs when trying to setup Android
-
Hello forum!
I really hope someone can help me, I've been tearing what is left of my hair out all day trying to get an Android development environment setup using Qt Creator on Windows.
I started with a fresh install of Qt, with all packages selected at v6.6.1 and then installed Android Developer Studio. I downloaded all the necessary SDK's, NDK and device images using Android Studio before moving to Qt.
Qt Creator seems to think the Android setup is fine, I am using the JDK that came with my Eclipse IDE but I've also installed Oracle JDK 17 and tried both and don't appear to have any issues inside the Android tab. The device tab also shows everything is great, I am targeting Android 10 and have set the device to use the same versions of the SDK and the images I downloaded in Android studio.
My problem is that I cannot get any kits configured. They constantly point me back to the Android setup saying that the config is wrong, but I get green ticks everywhere when I check. In the QT Version tab it reports an invalid Qt version and says it failed to detect the ABIs.
Does anyone have any idea what is going on?
-
Hello forum!
I really hope someone can help me, I've been tearing what is left of my hair out all day trying to get an Android development environment setup using Qt Creator on Windows.
I started with a fresh install of Qt, with all packages selected at v6.6.1 and then installed Android Developer Studio. I downloaded all the necessary SDK's, NDK and device images using Android Studio before moving to Qt.
Qt Creator seems to think the Android setup is fine, I am using the JDK that came with my Eclipse IDE but I've also installed Oracle JDK 17 and tried both and don't appear to have any issues inside the Android tab. The device tab also shows everything is great, I am targeting Android 10 and have set the device to use the same versions of the SDK and the images I downloaded in Android studio.
My problem is that I cannot get any kits configured. They constantly point me back to the Android setup saying that the config is wrong, but I get green ticks everywhere when I check. In the QT Version tab it reports an invalid Qt version and says it failed to detect the ABIs.
Does anyone have any idea what is going on?
-
@Milly Can you show the contents of Compiles and Kits tabs? I am using the same version of Qt on Linux and do not see this issue.
-
@Milly Are you sure you installed Qt Android modules?
Open the dir C:\Qt\6.6.1\ to check if you have the four android dirs and all the four qmake.bat files exist. -
@Milly I do not have a Windows computer nearby, but will check it later. There is no Android kit for you to select to build your Android app on Kits tab because Qt Android modules are not available on Qt Versions tab.
-
@JoeCFD Thanks for checking, appreciate the help. I wonder if it might be worth cleaning out Qt and starting again from afresh. At the moment I'm kind of lost to think of anything else to try!
-
@Milly One thing you can try is to launch maintenance tool to reinstall only Android modules of Qt 6.6.1.
-
@JoeCFD
I removed the Android module, restarted and then reinstalled everything and it is still not happy. I think I'll try again tomorrow with a totally clean install and see what happens. Thanks so much for your inputs, very much appreciated. -
@Milly You can add Qt versions in QtCreator manually. Try that for the Android Qt if it was not detected automatically.
-
@jsulm Thanks for the input. I completely removed my Qt install and left it downloading a fresh copy over night. This morning everything works.. Only difference is that I installed 6.5.3 instead.
-
It seems to have started recently as I reinstalled everything to the latest (6.6.1) versions. Today I did clean Ubuntu 23.10 reinstall twice and it failed, too (both in VM and real machine).
-
Same problems for me, I downloaded all the necessary SDKs, NDKs and device images using Android Studio before switching to Qt. I'm on a Mac and I can't get an android version to work, I have tested 5.14.2, 5.15.2 , 6.5.3 and 6.6.1 qt versions and always the same problem "Failed to detect the ABIs used by the Qt version. Check the settings in Devices > Android for errors." But there's nothing in the devices to indicate a problem...
I've been having this problem for 2 days, I've uninstalled and reinstalled the SDK, NDK and Qt package several times, but nothing works. Looking through the forum, I have the impression that the problem is caused by a QT createor update. Because other colleagues who have qt creator with an another version don't have this problem.
-
Hi,
I am also facing the same issue, The Qt Creator Version is 12.0.1 and I have tried installing two Qt versions Qt 6.6.1 and Qt 5.15.2. For both versions, I am not able to see the kits even though Android is completely set up. Even Android Emulators and everything seem to be working fine.
If anyone solves the issue then please do let me know, have been stuck on this for some time now.
-
Hi,
I am also facing the same issue, The Qt Creator Version is 12.0.1 and I have tried installing two Qt versions Qt 6.6.1 and Qt 5.15.2. For both versions, I am not able to see the kits even though Android is completely set up. Even Android Emulators and everything seem to be working fine.
If anyone solves the issue then please do let me know, have been stuck on this for some time now.
Just a heads up – I've noticed a problem with Qt Creator version 12.0.1. My colleagues on 12.0.0 aren't facing the same issue. Anybody else experiencing this? Might want to hold off on updating for now.
-
I ran into the same problem and I could fix this by closing QtCreator and deleting the directory %LOCALAPPDATA%\QtProject\QtCreator\cache\CachedStores.
I believe that the problem is caused by the qtcreator cache containing the wrong data for the android profile. My suspicion is that this happens when a Qt for Android is already installed while the Android (Java/SDK) setup in VictronConnect is not yet done. I believe that it then stores an empty ABI string and this is not updated when the Android settings are finished in QtCreator.
-
I ran into the same problem and I could fix this by closing QtCreator and deleting the directory %LOCALAPPDATA%\QtProject\QtCreator\cache\CachedStores.
I believe that the problem is caused by the qtcreator cache containing the wrong data for the android profile. My suspicion is that this happens when a Qt for Android is already installed while the Android (Java/SDK) setup in VictronConnect is not yet done. I believe that it then stores an empty ABI string and this is not updated when the Android settings are finished in QtCreator.
@TvEngelen said in QT Version reports failed to detect ABIs when trying to setup Android:
I ran into the same problem and I could fix this by closing QtCreator and deleting the directory %LOCALAPPDATA%\QtProject\QtCreator\cache\CachedStores.
I believe that the problem is caused by the qtcreator cache containing the wrong data for the android profile. My suspicion is that this happens when a Qt for Android is already installed while the Android (Java/SDK) setup in VictronConnect is not yet done. I believe that it then stores an empty ABI string and this is not updated when the Android settings are finished in QtCreator.
Thank you very much; I solved an installation problem on MacOS and QT 6.6.1.
The Android configuration was impossible before deleting the folder /Users/ (user name )/Library/Caches/QtProject/QtCreator/CachedStores
an restart the QTCreator