Android: Debugger can not start application
-
Following my "previous post ":http://qt-project.org/forums/viewthread/45669/, I am trying to run the debugger with Qt Creator but unfortunately Qt Creator tells me that it could not start the application.
In Qt Creator's settings, I have the following kit:
Android for armeabi-v7a( GCC 4.8, Qt 5.3.1 ) with debugger android for android gcc (arm-4.8)
Anyone else facing this issue ?
Thanks :)
-
Hi,
Are you trying to debug on a real device or a simulator ?
On a real device, you have to activate the debug mode (see in parameters) -
Hi,
I am trying to debug on a real device. Debug mode is activated since I can run the app through Qt Creator, just not in Debug.
-
Yes! I'm facing the same problem.
I can run applications on my Android device just fine, but when I try to debug on my Nexus 7 (1st gen), I get this:
D/libEGL (15578): loaded /system/lib/egl/libGLESv2_tegra.so
D/OpenGLRenderer(15578): Enabling debug mode 0
D/Qt (15578): fontdatabases/basic/qbasicfontdatabase.cpp:239 (static QStringList QBasicFontDatabase::addTTFile(const QByteArray&, const QByteArray&, QSupportedWritingSystems*)): FT_New_Face failed with index 0 : 90"org.qtproject.example.camera" died.
Debugging starts
Unable to start 'org.qtproject.example.camera'.Debugging has failed
Debugging has finished -
Are you using the r10 NDK? There is a bug in gdb in that version:
https://bugreports.qt-project.org/browse/QTCREATORBUG-12726
*edit: this might be a different problem. I'm seeing a similar problem now. Will update if I find a solution.
**edit: my problem was unrelated: turns out there was a bug in the 5.4 branch -
Ray Donnelly's gdb binaries are now available on
http://download.qt-project.org/official_releases/gdb/ -
I am having the same issue, using Qt 5.3.2. It used to work, but I don't know if it was working after I upgraded from Qt 5.3.1 to Qt 5.3.2, or when I upgraded from Android NDK r9d to Android NDK r10c. I tried downgrading to Android NDK r9d, but I still cannot run the app. I also made sure that my project debugger settings had both C++ and QML enabled because of this page:
http://qt-project.org/wiki/Qt532-KnownIssues
Android Debugging does not work out-of-the-box for C++-only projects
QTCREATORBUG-13006: Workaround: Select combined C++ and QML debugging in the project’s Run settings, even if the project does not use QML at all.But still have no luck. All I see is:
Debugging starts
Unable to start "my.app.Name".*edit: I am also on a real device.
**edit: I got the same thing with the simulator.