Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to build Android APK in Qt Creator

I am trying to build an android APK in Qt Creator 3.0.1 . I have properly given the configured Android SDK, NDK, Ant, Java Jdk. In Build Android APK step under Build there is a option to specify Android Build SDK i.e target SDK. I am currenty using API 21 but it i am not getting an option to specify it over there.

Plz Help how can i do that.

like image 273
Eljay Avatar asked Feb 03 '15 04:02

Eljay


People also ask

How do I create an APK in Qt?

Note: In Qt Creator, select Projects > Build > Build Steps > Build Android APK > Open package location after build to build the application's . apk and open the directory containing the package.

Can QT be used for Android?

Qt for Android enables you to develop Qt applications for Android devices, and supports a wide range of features and use-cases. To download and install Qt for Android, follow the instructions on the Getting Started with Qt for Android page. To build Qt from source, see Building from Source.

How can I create APK file in Android Studio?

In the menu bar, click Build > Generate Signed Bundle/APK. In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next. Below the field for Key store path, click Create new.

How do I run Qt app on Android?

Run Qt Creator, head to Tools->Options->Devices->Android, point it to the AdoptOpenJDK installation, let it set up the tools it needs, and verify everything has green checkmarks. Start a new project and select the Qt Quick "Swipe" template (bare minimum QML example), 5.15. 2 for Android.


1 Answers

First you should select Tools > Options > Android to add paths to the Android NDK and SDK :

enter image description here

Also select the Automatically create kits for Android tool chains option.

For configuring deployment settings you should go to Projects > Build Android APK > Details Since Qt 5.4 along with QtCreator 3.3.0. To create an APK package, select the Bundle Qt libraries in APK option :

enter image description here

You can also select Create Templates to create the manifest file to set application settings like icon, name, ...

In previous versions of Qt and Qt Creator you should go to Projects->Run->Deploy.

I recommend you to use the latest version of Qt and Qt Creator for Android development and deployment.

like image 99
Nejat Avatar answered Oct 23 '22 02:10

Nejat