Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Building Android projects in Qt (5.8) doesn't work anymore

Building Android projects in Qt (5.8) doesn't work anymore

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 4.0k Views 2 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.
  • S Offline
    S Offline
    SoulEater45
    wrote on last edited by
    #1

    So I made some updates to the Android SDK, NDK and Apache Ant and now I am not able to build any Android projects...

    I get one warning and then it says it can't find the build.xml file. The error:

    Warning: Android platform 'android--1' does not exist in SDK.
    Generating Android Package
      Input file: /home/mirza/Development/Qt Projects/build-Test-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-libTest.so-deployment-settings.json
      Output directory: /home/mirza/Development/Qt Projects/build-Test-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-build/
      Application binary: /home/mirza/Development/Qt Projects/build-Test-Android_f_r_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/libTest.so
      Android build platform: android--1
      Install to device: No
    Buildfile: build.xml does not exist!
    Build failed
    Building the android package failed!
      -- For more information, run this command with --verbose.
    

    I have installed the SDKs from lvl 15 upwards, NDK 14 over SDK and Apache Ant 1.10.1. Well, it still says that I dont have the API 1 in my SDK, which isn't even available as official download in my SDK manager and the build.xml is also missing. Could it be that warning is comming up bcs of the missing file? And I am also not bale to choose the API lvl in menu Projects -> Build Android-APK -> Android-Build-SDK, nothing shows up after doing that. I have even installed my whole system again and downloaded all iteams, bcs I thought it's some kind of configuration error, but seems like I have some incompatible versions here.

    1 Reply Last reply
    0
    • ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #2

      what do you mean with NDK14 - you must use NDK r10e

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
      5.15 --> 6.9 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sprobst
        wrote on last edited by
        #3

        I installed yesterday QT 5.8 on Windows. I also updated the latest Android SDKs, the latest NDK and the latest Apache Ant.

        Unfortunatly I ended up with the same problem as SoulEater45 Warning: Android platform 'android--1' does not exist in SDK.

        I also have a empty drop-down box Projects -> Build Android-APK -> Android-Build-SDK. I also tried to set different variantions of path and other environment variables.

        However nothing works. Does anybody has a solution for this? Is there a problem in the search path? Or is the problem that the android command is no longer available:

        The "android" command is no longer available.
        For manual SDK and AVD management, please use Android Studio.
        For command-line tools, use
        tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
        

        Thank you for your support!

        ekkescornerE 1 Reply Last reply
        0
        • S sprobst

          I installed yesterday QT 5.8 on Windows. I also updated the latest Android SDKs, the latest NDK and the latest Apache Ant.

          Unfortunatly I ended up with the same problem as SoulEater45 Warning: Android platform 'android--1' does not exist in SDK.

          I also have a empty drop-down box Projects -> Build Android-APK -> Android-Build-SDK. I also tried to set different variantions of path and other environment variables.

          However nothing works. Does anybody has a solution for this? Is there a problem in the search path? Or is the problem that the android command is no longer available:

          The "android" command is no longer available.
          For manual SDK and AVD management, please use Android Studio.
          For command-line tools, use
          tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
          

          Thank you for your support!

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by ekkescorner
          #4

          @sprobst don't use the latest SDK - use 25.2.5 see https://bugreports.qt.io/browse/QTBUG-59236
          don't use latest NDK - use r10e

          see also my blog https://appbus.wordpress.com/category/qt-for-mobile/prepare-development/

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.9 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          4

          • Login

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