No android build step with Qt + Android + CMake in Qt Creator
-
Hello,
I'm able to create a project for android using QMake, it works fine. However, if I try to build using CMake, builds works but only the code. No android build step are generated.
I get the following error:
Cannot find the android build step. Error while building/deploying project untitled (kit: Android for x86 (GCC 4.9, Qt 5.10.1 (x86))) When executing step "Deploy to Android device"
What should I do?
-
Hello,
Did you found a response to your question ?
I have similar "problem" : I'm able to compile and genrate apk using cmake and qtcreator but not able to start the application, I have same error message than your topicIs it possible to run apk generated via cmake in qtcreator ?
I use following thing to do that
https://forum.qt.io/topic/91485/qt-5-10-1-try-to-compile-a-basic-app-for-android-arm-using-cmake/6 -
Hit the same problem. You may want to try if this works for you (For me it had not yet).
-
@Narasimha-Reddy-MV
Hi,
Thanks for your helpI'm the author of this post ;)
Well in this topic my problem is that I tryed to debug the apk with QtCreator
As androidqtdeploy step has been handled in the cmake scripts QtCreator does not know that apk has already been deployed and try to do it without successSo now I compile and generate apk with dos scripts and cmake and all necessary things, and I debug the apk using Android Studio
It works well but I'm not able to debug QML code, so I use lots of console.log in the source code ! -
@Kot-Zadrot
Hello,I use Android Studio for debug
I'm not able to debug QML code but for c++ part I can set breakpoints and see content of some variables
I use also lots of qDebug
It's not perfect but at least it works
I compile / generate the apk, and in Android studio I choose "profile or debug apk" and gives the path / file of my apk previously generated