Building error for android "Execution failed for task ':compileDebugAidl'."
-
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 FAILEDFAILURE: 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" -