Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Unable to build Android APK in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Unable to build Android APK in Qt Creator

Scheduled Pinned Locked Moved Solved Installation and Deployment
qt creator
2 Posts 1 Posters 1.4k 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.
  • M Offline
    M Offline
    marcosabbaqt
    wrote on last edited by A Former User
    #1

    I am trying to build an android APK in Qt Creator 3.4.1 . I have properly given the configured Android SDK (from an Android Studio installation), NDK, Ant, Java Jdk. In Build Android APK step under Build there is a option to specify Android Build SDK i.e target SDK. I am currenty using API 21 but it i am not getting an option to specify it over there.
    In http://stackoverflow.com/questions/28291650/unable-to-build-android-apk-in-qt-creator a user told about the 10secs limit to get the targets list: if I launch "android list targets" under cmd, it needs almost 17-18secs to get the list.
    GIven that this is a sideffect-problem that makes qt Creator give up the getting of apis, why a so long time to get this list? Could it be some wrong or missing path somewhere?
    Is it possible to increment this 10secs via patch or make it editable in some settings file?
    Thank you for your help.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      marcosabbaqt
      wrote on last edited by
      #2

      Just if someone could need it in the future, I will say how I solved this issue:

      1. my company's IT office man uninstalled the enterprise antivirus we are using
      2. I opened Qt Creator, went to the buid settings of the chosen kit in Projects, and selected the Android Build SDK under Build Android APK: this time it was filled with the installed APIs (chose android-21)
      3. I closed Qt Creator
      4. IT man re-installed the antivirus
      5. I re-opened Qt Creator and all is working fine. Also writing "adnroid list targets" in cmd is really fast (1 sec vs 17 secs).
        Bye everybody
      1 Reply Last reply
      1

      • Login

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