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. Unsuccessful APK Build with higher androidBuildToolsVersion
Forum Updated to NodeBB v4.3 + New Features

Unsuccessful APK Build with higher androidBuildToolsVersion

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 680 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.
  • ahsan737A Offline
    ahsan737A Offline
    ahsan737
    wrote on last edited by
    #1

    Greetings,

    I can successfully build apk withandroidBuildToolsVersion=28.0.3. However, the build fails if I use any higher version such as androidBuildTools 33.0.0.

    SDK Version: 26.1.1
    NDK Version: 19.2.5345600
    Qt 5.13.1

    :compileDebugAidl FAILED
    FAILURE: Build failed with an exception.
    *What went wrong:
    Execution failed for task ':compileDebugAidl'.

    How can I potentially solve this issue?

    Also, how can I add higher APIs under Target SDK in AndroidManifest File (Currently: API29: Android 9)

    jsulmJ JoeCFDJ 2 Replies Last reply
    0
    • ahsan737A ahsan737

      Greetings,

      I can successfully build apk withandroidBuildToolsVersion=28.0.3. However, the build fails if I use any higher version such as androidBuildTools 33.0.0.

      SDK Version: 26.1.1
      NDK Version: 19.2.5345600
      Qt 5.13.1

      :compileDebugAidl FAILED
      FAILURE: Build failed with an exception.
      *What went wrong:
      Execution failed for task ':compileDebugAidl'.

      How can I potentially solve this issue?

      Also, how can I add higher APIs under Target SDK in AndroidManifest File (Currently: API29: Android 9)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:

      How can I potentially solve this issue?

      I'm not an Android expert but maybe you need a newer Qt version? 5.13.1 is quite old already.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      ahsan737A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:

        How can I potentially solve this issue?

        I'm not an Android expert but maybe you need a newer Qt version? 5.13.1 is quite old already.

        ahsan737A Offline
        ahsan737A Offline
        ahsan737
        wrote on last edited by
        #3

        @jsulm

        thanks for your response.
        I've already tried building with a higher Qt version, but I have faced build errors.

        When I load the project in Qt (5.13.1), it shows the following messages.
        Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
        Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.

        How can I make it not version-specific?

        jsulmJ 1 Reply Last reply
        0
        • ahsan737A ahsan737

          @jsulm

          thanks for your response.
          I've already tried building with a higher Qt version, but I have faced build errors.

          When I load the project in Qt (5.13.1), it shows the following messages.
          Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
          Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.

          How can I make it not version-specific?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:

          How can I make it not version-specific?

          Don't use private headers from Qt.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • ahsan737A ahsan737

            Greetings,

            I can successfully build apk withandroidBuildToolsVersion=28.0.3. However, the build fails if I use any higher version such as androidBuildTools 33.0.0.

            SDK Version: 26.1.1
            NDK Version: 19.2.5345600
            Qt 5.13.1

            :compileDebugAidl FAILED
            FAILURE: Build failed with an exception.
            *What went wrong:
            Execution failed for task ':compileDebugAidl'.

            How can I potentially solve this issue?

            Also, how can I add higher APIs under Target SDK in AndroidManifest File (Currently: API29: Android 9)

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            @ahsan737 Android 9 has API 28. Android 10 has API 29. They have to match. And you need the proper version of JDK as well.

            ahsan737A 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @ahsan737 Android 9 has API 28. Android 10 has API 29. They have to match. And you need the proper version of JDK as well.

              ahsan737A Offline
              ahsan737A Offline
              ahsan737
              wrote on last edited by
              #6

              @JoeCFD
              thanks, how to check which version of JDK is appropriate, or should I go with the latest one?

              jsulmJ JoeCFDJ 2 Replies Last reply
              0
              • ahsan737A ahsan737

                @JoeCFD
                thanks, how to check which version of JDK is appropriate, or should I go with the latest one?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @ahsan737 said in Unsuccessful APK Build with higher androidBuildToolsVersion:

                how to check which version of JDK is appropriate

                https://doc.qt.io/qt-5/android-getting-started.html

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • ahsan737A ahsan737

                  @JoeCFD
                  thanks, how to check which version of JDK is appropriate, or should I go with the latest one?

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #8

                  @ahsan737 https://developer.android.com/about/versions/13/features
                  It still uses JDK 11.

                  https://developer.android.com/about/versions/13/setup-sdk
                  for gradle change and check gradle version match as well. Qt has a default gradle version. You may need to change it as well. Check my previous posts.

                  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