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. Error processing android aidl with Qt5.15.11
Forum Updated to NodeBB v4.3 + New Features

Error processing android aidl with Qt5.15.11

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

    Hello,

    I have Qt6.4 and Qt5.15.11 both installed on my windows,
    and I got following error on executing aidl file from Qt5.15.11(textfinder example project), is it because 5.15.11 is incompatible with build-tools 33.0.0?

    Execution failed for task ':compileDebugAidl'.

    A failure occurred while executing com.android.build.gradle.tasks.AidlCompile$AidlCompileRunnable
    com.android.ide.common.process.ProcessException: Error while executing process C:\Users\leonz\AppData\Local\Android\Sdk\build-tools\33.0.0\aidl.exe with arguments {-pC:\Users\leonz\AppData\Local\Android\Sdk\platforms\android-33\framework.aidl -oE:\ProgramFiles\Qt\Examples\Qt-5.15.11\uitools\build-textfinder-Android_Qt_5_15_11_Clang_Multi_Abi-Debug\android-build\build\generated\aidl_source_output_dir\debug\out -IE:\ProgramFiles\Qt\5.15.11\android\src\android\java\src -IE:\ProgramFiles\Qt\Examples\Qt-5.15.11\uitools\build-textfinder-Android_Qt_5_15_11_Clang_Multi_Abi-Debug\android-build\src -IE:\ProgramFiles\Qt\Examples\Qt-5.15.11\uitools\build-textfinder-Android_Qt_5_15_11_Clang_Multi_Abi-Debug\android-build\aidl -IE:\ProgramFiles\Qt\Examples\Qt-5.15.11\uitools\build-textfinder-Android_Qt_5_15_11_Clang_Multi_Abi-Debug\android-build\src\debug\aidl -dC:\Users\leonz\AppData\Local\Temp\aidl6002054530545793634.d E:\ProgramFiles\Qt\5.15.11\android\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}

    while I can build Qt6.4 for android configuration with no problem.
    If it is because incompatible with build-tools, how I can set use specific build-tools version in Qt Creator?

    Thanks

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens Christensen
      wrote on last edited by
      #2

      You can create a gradle.properties file inside your android directory and add:

      androidBuildToolsVersion=31.0.0
      

      It's also possible to change it directly in build.gradle:

      android {
        ...
        compileSdkVersion androidCompileSdkVersion.toInteger()
        buildToolsVersion "31.0.0"
        ...
      }
      
      L 1 Reply Last reply
      0
      • J Jens Christensen

        You can create a gradle.properties file inside your android directory and add:

        androidBuildToolsVersion=31.0.0
        

        It's also possible to change it directly in build.gradle:

        android {
          ...
          compileSdkVersion androidCompileSdkVersion.toInteger()
          buildToolsVersion "31.0.0"
          ...
        }
        
        L Offline
        L Offline
        Leon Zhang
        wrote on last edited by
        #3

        @Jens-Christensen Thanks for reply. I am using Qt creator and the project is in pro file, so there is no build.gradle file. How to add gradle.properties file to pro project?

        JoeCFDJ 1 Reply Last reply
        0
        • L Leon Zhang

          @Jens-Christensen Thanks for reply. I am using Qt creator and the project is in pro file, so there is no build.gradle file. How to add gradle.properties file to pro project?

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

          @Leon-Zhang These files are generated automatically for your project by qt creator under dir android where AndroidManifest.xml is located.

          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 Extensions
          • Unsolved