Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Building error for android "Execution failed for task ':compileDebugAidl'."

    Mobile and Embedded
    3
    3
    2847
    Loading More Posts
    • 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.
    • A
      aziz last edited by

      So I tried to run an application that accesses the camera. It builds and runs on my android 8.0 phone with Ubuntu but not with Windows. I tried NDK 20, 19c and 18b, none worked. I also tried an older android compiler compatible with my phone(Huawei p20 lite), same problem. Looks like smt is wrong with Graddle... I don't know I'm pretty new to Qt.

      Here is the entire output:

      Generating Android Package
      Input file: C:/Users/Zayed/Documents/QProjects/build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug/android-libCameraTest.so-deployment-settings.json
      Output directory: C:/Users/Zayed/Documents/QProjects/build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug/android-build/
      Application binary: C:/Users/Zayed/Documents/QProjects/build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug/libCameraTest.so
      Android build platform: android-29
      Install to device: No
      -- Skipping C:/Qt/5.12.3/android_arm64_v8a/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Skipping C:/Qt/5.12.3/android_arm64_v8a/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.
      :checkDebugClasspath
      :preBuild UP-TO-DATE
      :preDebugBuild
      :compileDebugAidl FAILED

      FAILURE: Build failed with an exception.

      *What went wrong:
      Execution failed for task ':compileDebugAidl'.

      java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process C:\AndroidCompilerTools\build-tools\29.0.0\aidl.exe with arguments {-pC:\AndroidCompilerTools\platforms\android-29\framework.aidl -oC:\Users\Zayed\Documents\QProjects\build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug\android-build\build\generated\source\aidl\debug -IC:\Users\Zayed\Documents\QProjects\build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug\android-build\src -IC:\Qt\5.12.3\android_arm64_v8a\src\android\java\src -IC:\Users\Zayed\Documents\QProjects\build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug\android-build\aidl -IC:\Users\Zayed\Documents\QProjects\build-CameraTest-Android_for_arm64_v8a_Clang_Qt_5_12_3_for_Android_ARM64_v8a-Debug\android-build\src\debug\aidl -dC:\Users\Zayed\AppData\Local\Temp\aidl2750837382145078387.d C:\Qt\5.12.3\android_arm64_v8a\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}

      *Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

      *Get more help at https://help.gradle.org

      BUILD FAILED in 19s
      3 actionable tasks: 3 executed
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
      Building the android package failed!
      -- For more information, run this command with --verbose.
      20:59:47: The process "C:\Qt\5.12.3\android_arm64_v8a\bin\androiddeployqt.exe" exited with code 14.
      Error while building/deploying project CameraTest (kit: Android for arm64-v8a (Clang Qt 5.12.3 for Android ARM64-v8a))
      When executing step "Build Android APK"

      1 Reply Last reply Reply Quote 0
      • N
        nikich340 last edited by

        Use NDK 19c and Android SDK build-tools 28.0.3 (delete 29.0.0 and any other versions)

        1 Reply Last reply Reply Quote 0
        • A
          Albertino last edited by

          see https://forum.qt.io/topic/101322/what-s-the-problem-android-compile-error/11

          1 Reply Last reply Reply Quote 0
          • First post
            Last post