Unsolved Qt Quick Application doesn't buil a .apk file
-
Hello,
Using a
Qt Quick Application
(project name: SimpleUI), I ran this example using theDesktop kit
correctly. Then went for testing the app using bothAndroid for armeabi-v7a (GCC 4.9, Qt 5.9.0 for Android armv7)
andAndroid for x86 (GCC 4.9, Qt 5.9.0 for Android x86)
kits in both Debug and Release modes. I don't have an Android device and used emulators for both non-Desktop kits, although they didn't show the output of the app!
Now my folder looks like this, and I searched the.apk
file to test it somewhere else and searched the folders by*.apk
but I couldn't find such a file!
https://s1.postimg.org/qpql2b8e7/Capture.pngWhat is the problem please?
Qt Creator IDE ver: 4.3.0
Qt ver: 5.9 -
@tomy
Hi,
There may be a mismatch of api level required by your device.
first check which api level you are using and update the api level that your device required, by using the appropriate Android SDK. -
Hi, and thank you.
Here is my SDK:They seem to be up fine enough. Should I add some things to it?
-
@tomy
hi,
also check what api level your device requires,
for example if the device version is Android 4.3 Jellybean, it needs api level 18.
right now you have api level 24 and 25 with you so that device version should be Android 7.0 Nougat or Android 7.1.1 Nougat.I dont think that you have an android 7.0(api level 24) device. try with some minimal api level.
-
Thank you for your reply.
also check what api level your device requires,
I don't have a real/physical device, but emulators (AVDs). I have two AVDs as follows:
And if you meant them, by devices, I don't know how to do that or check. If possible, please provide some simple explanation on the issue so that I will be able to figure your intention out properly. :-)
-
Any other help on recognizing and finally solving the issue?
-
@tomy
Did you look in
projects > Build Android APK > Details.
http://doc.qt.io/qtcreator/creator-deploying-android.html -
@tomy
Hi,
check Apache Ant path is pointing to the right place or not. -
@Venkatesh-V
Hi,
I don't use Ant, but Gradle instead. -
Did you look in
projects > Build Android APK > Details.Yes. Using SimpleUI project I went through the path and found details for both architectures.
Here is for the Arm and this one for the x86.Did you mean the following part by the link above?
Creating Distributable APK Packages
To copy Qt libraries and files to the project directory and to bundle them as part of the APK, select the Bundle Qt libraries in APK option.
If so, that option is checked beforehand.
Does everything seem OK?
-
Hi,
I updated the SDK and created an Arm AVD and ran the app and waited until the end. It says, at the end:
FAILURE: Build failed with an exception.
This screen and this one are the full message.
:-(