How to setup Qt Creator 4.11.0 (Qt 5.14) to Android development
-
I've got Qt 5.14 (Qt Creator 4.11.0) and I want to develop Android application with Qt. So I read some articles how to do this and download the appropriate tools:
- JDK 21
- Android SDK (downloaded by Android Studio)
- Android NDK (downloaded from the website as zip-archive)
I tried to setup Qt Creator with these tools and failed - I've got some red crosses in the "Options" window. Could you tell me what is wrong?
This is the "Device" page of "Options":
This is a sctructure of my "SDK" directory:
This is a sctructure of my "NDK" directory:
So I have some questions:
- What is "SDK tools"?
- What is "Platform SDK"?
- What is wrong with NDK directory structure?
- Why the spaces absence check fails? As you see above my path does not contain any spaces.
-
Hi,
First things first: update Qt Creator. It's currently at version 12 so the 4 series is more than outdated.
Also, follow the Androïd getting started guide especially for the various versions of Java, NDK and SDK.
-
You should understand, it's almost impossible to update Qt Creator independently because of very user unfriendly interface of Qt Maintenance tool. And as I found out from documentation I can use that Qt version for Android development. So what the problem is?
-
@sminder said in How to setup Qt Creator 4.11.0 (Qt 5.14) to Android development:
it's almost impossible to update Qt Creator independently because of very user unfriendly interface of Qt Maintenance tool
Never had problems updating QtCreator. What exact problem do you have?
-
@sminder said in How to setup Qt Creator 4.11.0 (Qt 5.14) to Android development:
What is "SDK tools"?
What is wrong with NDK directory structure?SDK tools and NDK can be found in SDK Manager. Click here:
I will find there:
- NDK (Side by side)
- Android SDK Platform-Tools
- Android SDK Build-Tools
- Android SDK Command-line Tools
You need check them and install:
What is "Platform SDK"?
Platform SDK can be found in SDK Manager too. For example: -
To run an application on Android emulator you should install "Android Emulator":
And "System Image". For example:
Create a virtual device.
This is an example how the Emulator looks with OpenGL ES 2.0 app: