QT 5.12 Android程序编译问题
庆儿 2019-05-07 05:39:51 我在建立Hello World中遇到问题,程序基本没有代码。
感觉出现错误和compileDebugAidl有关
: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 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 --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
Building the android package failed!
-- For more information, run this command with --verbose.
17:31:51: 进程"D:\Qt\Qt5.12.2\5.12.2\android_x86\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project untitled4 (kit: Android for x86 (Clang Qt 5.12.2 for Android x86))
When executing step "Build Android APK"
17:31:51: Elapsed time: 00:48.
环境:C:\Program Files\Java\jdk1.8.0_181 D:\Android\android-sdk D:\Android\android-sdk\ndk-bundle(Android Studio 下载),也是用了D:\Android\android-ndk-r19c,一样的结果。