Android build SDK not defined. Check Android settings.
Error message : Android build SDK not defined. Check Android settings.
Error while building/deploying project mapAndlocation (kit: Android for x86 (GCC 4.9, Qt 5.9.1 for Android x86))
When executing step "Build Android APK"
Please have a look my QT creator settings and please let me know whats the issues i am unable to run apps on emulator or android device.
Thanks in advance.
@NikhilJ In the middle of the first screenshot you can see a combo box "Android build SDK" - there is nothing selected.
@jsulm yes that's the reason. I don't know why platforms are not showing there. I have already give complete SDK path in screen shot 3. And SDK path in environment variable as well. can u please help me to know the reason.
I am using 64 bit windows 10. with latest android SDK & QT version.
@NikhilJ Is there nothing in "Android build SDK"?
@jsulm Yes i am unable to select platform in this drop down.(Empty).
@NikhilJ I had the same problem, but I have installed the latest Qt 5.9.2, the latest JDK 1.8.0-151, the latest Android NDK (android-ndk-r15c), the latest Android SDK Tools (26.1.1), the latest Android SDK Platform-Tools (26.0.1), the latest Android SDK Build-Tools (26.0.2) and also I have installed all Android SDK for API Level from 16 to 26, and now I do not observe the problem.
Also check: can you invoke java -version from command line? What do you see? It must be JDK 8 or early.
Qt Creator must be available to call sdkmanager, avdmanager and etc. To do it you have to set the JAVA_HOME environment variable to JDK 8 and put JAVA_HOME/bin into the PATH environment variable before calling Qt Creator.