Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Building Android projects in Qt (5.8) doesn't work anymore
SoulEater45 last edited by
So I made some updates to the Android SDK, NDK and Apache Ant and now I am not able to build any Android projects...
I get one warning and then it says it can't find the build.xml file. The error:
Warning: Android platform 'android--1' does not exist in SDK. Generating Android Package Input file: /home/mirza/Development/Qt Projects/build-Test-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-libTest.so-deployment-settings.json Output directory: /home/mirza/Development/Qt Projects/build-Test-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-build/ Application binary: /home/mirza/Development/Qt Projects/build-Test-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/libTest.so Android build platform: android--1 Install to device: No Buildfile: build.xml does not exist! Build failed Building the android package failed! -- For more information, run this command with --verbose.
I have installed the SDKs from lvl 15 upwards, NDK 14 over SDK and Apache Ant 1.10.1. Well, it still says that I dont have the API 1 in my SDK, which isn't even available as official download in my SDK manager and the build.xml is also missing. Could it be that warning is comming up bcs of the missing file? And I am also not bale to choose the API lvl in menu Projects -> Build Android-APK -> Android-Build-SDK, nothing shows up after doing that. I have even installed my whole system again and downloaded all iteams, bcs I thought it's some kind of configuration error, but seems like I have some incompatible versions here.
what do you mean with NDK14 - you must use NDK r10e
sprobst last edited by
I installed yesterday QT 5.8 on Windows. I also updated the latest Android SDKs, the latest NDK and the latest Apache Ant.
Unfortunatly I ended up with the same problem as SoulEater45 Warning: Android platform 'android--1' does not exist in SDK.
I also have a empty drop-down box Projects -> Build Android-APK -> Android-Build-SDK. I also tried to set different variantions of path and other environment variables.
However nothing works. Does anybody has a solution for this? Is there a problem in the search path? Or is the problem that the android command is no longer available:
The "android" command is no longer available. For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
Thank you for your support!