How to get apk from qt qreator
-
Hi, i have qt 5.1.0 and configure android on it. when i click on run the virtual android is started but i cant see my program? where is it? how can i get .apk file ?it is not in debug folder.
-
When everything was successful, it will be in /your_project/android/bin
-
thanks for your reply. res and src are in android folder but there is not bin folder.(the virtual android device are started but i can't execute program in that)
-
What is the error you are getting when you try to execute it?
-
there is no error. the virtual android is starting and i can see that. but i can't how can i run my program in that and get apk.(also i can build my program without error).
-
When the emulator is started, click the green Run button again. Actually you should see some compile and application output in Qt creator.
-
when emulator is executed i can't click green button on qt qreator because it will be not responding until emulator is running.
-
Maybe wait some time. Actually you should still be able to access the Qt creator.
If it doesnt work, you could try a newer version. They are making snapshots of their current development mostly every day
http://download.qt-project.org/snapshots/qt/5.1/5.1.1-rc1/backups/
-
No, i wait a long time.
when i close emulator in issues it wrote:
@
:-1: error: Cannot deploy: no devices or emulators found for your package.
@
an in compile output it wrote:
@
10:59:25: Please wait, searching for a suitable device for target:android-18.
Error while building/deploying project untitled18 (kit: Android for x86 (GCC 4.8, Qt 5.1.0))
When executing step 'Deploy to Android device'
@ -
Try to change the Kit to Android for Arm and not x86. You can do that in your project's settings.
-
i do this config:
http://upload7.ir/images/29427701088852765091.jpgbut same error: exesit.
-
Try a development build http://download.qt-project.org/snapshots/qt/5.1/5.1.1-rc1/backups/
and this time let it install android for arm in the Qt installer. -
I have exactly the same problem. The last post is not clear to me.
Can you explain a bit more please? -
To be a bit more precise. When I run ant, it creates in android a libs and bin directory. In the bin there is an apk file. But as soon as I press the play button, it removes the directory bin and does not recreate it.
-
@Peacock last post i say you download qt 5.1.1 rc1 instead qt 5.1.0. it may solved our problem. i didn't test it now.