Home > Mobile >  QT 5.12 Android program compile problem
QT 5.12 Android program compile problem

Time:10-02

Problems encountered in the build Hello World, I basically have no code,
Feel there is an error related to compileDebugAidl


: checkDebugClasspath
: preBuild the UP - TO - DATE
: preDebugBuild
: compileDebugAidl FAILED

FAILURE: the 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 D:\Android\android-sdk\build-tools\29.0.0-rc2\aidl.exe with arguments {-pD:\Android\android-sdk\platforms\android-28\framework.aidl -oE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\build\generated\source\aidl\debug -IE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\src\debug\aidl -IE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\src -ID:\Qt\Qt5.12.2\5.12.2\android_x86\src\android\java\src -IE:\qt_android\build-untitled4-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Debug\android-build\aidl -dC:\Users\admin\AppData\Local\Temp\aidl1458742573420267058.d D:\Qt\Qt5.12.2\5.12.2\android_x86\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}

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

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

The BUILD FAILED in 19 s
3 the actionable tasks: 3 executed
Building the android package failed!
- For more information, run this command with the -- verbose.
17:31:51: process "D: \ Qt \ Qt5.12.2\5.12.2 \ android_x86 \ bin \ androiddeployqt exe" quit, exit code 14,
Error while building/deploying project untitled4 (kit: Android x86 (Clang Qt 5.12.2 for Android x86))
The When executing step "Build Android APK"
17:31:51: Elapsed time: 00:48.

environment: C: \ Program Files \ Java \ jdk1.8.0 _181 D: \ Android \ Android SDK - D: \ Android, Android - SDK and the NDK - bundle (Android Studio download), and use the D: \ Android \ Android - the NDK - r19c, the same result,

CodePudding user response:

All written in golang
  •  Tags:  
  • Qt
  • Related