Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can't deploy project to android device
Qt 6.12 LTS is out! See what's new in the release blog

Can't deploy project to android device

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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:

    @...
    ...
    BUILD FAILED
    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 :((

    1 Reply Last reply
    0
    • U Offline
      U Offline
      UniversE
      wrote on last edited by
      #2

      Try to remove screenSize in AndroidManifest.xml.

      Reference:
      https://bugreports.qt-project.org/browse/QTBUG-34154
      http://stackoverflow.com/questions/11208729/error-string-types-not-allowed-at-androidconfigchanges-in-manifest-file
      https://bugreports.qt-project.org/browse/QTBUG-31810

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved