Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can't deploy project to android device
Android74 last edited by
Hi guys. I wanted to start programming apps for android then test them on my device, so i downloaded
Sdk(20131030), Ndk r9b, apache ant 1.92 and jdk 1.7.0, added to Qt in the options and other things i saw in a tutorial.
The problem is that when i connect my device to pc by usb, activate debug, create a new project and run it, it build it without errors but then in the deploy it gives me a lot of problems. This is the compile output:
C:\Android\sdk\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\Android\sdk\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\Android\sdk\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\Android\sdk\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:284: null returned: 2
Total time: 24 seconds
Packaging Error: Command 'C:/Android/apache-ant-1.9.2-bin/apache-ant-1.9.2/bin/ant.bat clean debug' failed.Exit code: 1
Error while building/deploying project untitled1 (kit: Android for arm (GCC 4.8, Qt 5.1.1))
When executing step 'Packaging for Android'
18:25:59: Elapsed time: 01:22@
I really tried everything. I'm sure the adb works (whit adb devices). Oh and i'm on Windows 7, please help :((
UniversE last edited by
Try to remove screenSize in AndroidManifest.xml.