Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Qt Creator for Android development

I have installed:

Qt 5.14.1 for msvc 2017 & Android installed to c:\Qt\Qt5.14.1\:

enter image description here

Compilers available in Qt Creator:

enter image description here

Kits available: enter image description here

JDK-13.0.2 installed to c:\Program Files\Java\jdk-13.0.2

Android Studio 3.6.1 g:\Android\Android Studio\ with SDKs installed to g:\Android\SDK as shown below:

enter image description here

SDK tools:

enter image description here

Now what I see in Qt Creator:

enter image description here

How can I fix these errors? Why did they arise?

Edit: I've installed JDK 8 instead of 13. But still have the same red crosses.

Also in the topic 'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator says that SDK 25.2.5 has to be installed, but how can I install SDK 25.2.5 ? Android Studio doesn't have this version available in the System Settings.

Edit 2: I've downloaded the archive "Android SDK Tools 25.2.5" from the link https://androidsdkmanager.azurewebsites.net/SDKTools . As I understand, this archive contains "SDK tools 25.2.5" + "some Android package manager". Then I:

  1. Unpack the archive to the folder g:\Android\SDK\tools\. What the folder actually contains:
ant\
apps\
bin\
lib\
lib64\
proguard\
qemu\
support\
templates\
android.bat
ddms.bat
draw9patch.bat
hierarchyviewer.bat
jobb.bat
lint.bat
monitor.bat
monkeyrunner.bat
traceview.bat
uiautomatorviewer.bat
emulator.exe
emulator-arm.exe
emulator-check.exe
emulator-crash-service.exe
emulator-mips.exe
emulator-x86.exe
emulator64-crash-service.exe
mksdcard.exe
source.properties
NOTICE.txt
package.xml
  1. Run android.bat from the folder and in the window that appears, I see that now I have SDK 25.2.5 installed:

enter image description here

And in Qt Creator Android Settings are almost ok now: enter image description here

like image 352
Vladimir Bershov Avatar asked Nov 26 '25 11:11

Vladimir Bershov


1 Answers

You can check these links that may help you. Although, its looks like the problem is the JDK version, you should test with JDK 8, instead the latest release.

  • https://wiki.qt.io/Qt_for_Android_known_issues
  • https://forum.qt.io/topic/90310/platform-sdk-installed-red-x-adding-android-sdk-tools-in-qt-creator/20
like image 195
Vinicius Almada Avatar answered Nov 29 '25 00:11

Vinicius Almada



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!