Qt for android构建Android Apk时出错

邢乐
2023-12-01

编译报错如下:

08:26:46: 为项目testAndroid执行步骤 …
08:26:46: 配置没有改变, 跳过 qmake 步骤。
08:26:46: 正在启动 “D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe”

mingw32-make: Nothing to be done for ‘first’.
08:26:48: 进程"D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
08:26:48: Removing directory D:\Qt\QtDebug\testAndroid\build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug\android-build
08:26:48: 正在启动 “D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe” “INSTALL_ROOT=D:\Qt\QtDebug\testAndroid\build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug\android-build” install

copy /y libtestAndroid.so D:\Qt\QtDebug\testAndroid\build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug\android-build\libs\armeabi-v7a\libtestAndroid.so
已复制 1 个文件。
08:26:49: 进程"D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
08:26:49: Starting: “D:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe” --input D:/Qt/QtDebug/testAndroid/build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug/android-libtestAndroid.so-deployment-settings.json --output D:/Qt/QtDebug/testAndroid/build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug/android-build --deployment bundled --android-platform android-29 --jdk “C:/Program Files/Java/jdk1.8.0_181” --ant D:/Qt/apache-ant-1.10.6-bin/apache-ant-1.10.6/bin/ant.bat
系统找不到指定的路径。*
Generating Android Package
Input file: D:/Qt/QtDebug/testAndroid/build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug/android-libtestAndroid.so-deployment-settings.json
Output directory: D:/Qt/QtDebug/testAndroid/build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug/android-build/
Application binary: D:/Qt/QtDebug/testAndroid/build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_c79bf1-Debug/libtestAndroid.so
Android build platform: android-29
Install to device: No
Building the android package failed!
– For more information, run this command with --verbose.
08:26:59: 进程"D:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project testAndroid (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
When executing step “Build Android APK”
08:26:59: Elapsed time: 00:13.

 类似资料: