我在建立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,一樣的結果。
uj5u.com熱心網友回復:
都用golang寫了轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/105498.html
標籤:Qt
上一篇:win10 qt5.12 點擊*.pro 檔案出現“請求的操作需要提升?”
下一篇:通過微信號或者wxid如何生成微信二維碼,求大神賜教,有重謝!通過微信號或者wxid如何生成微信二維碼,求大神賜教,有重謝!
