Unsolved Qt 5.8 android, Buildfile: build.xml does not exist!
-
20:12:50: 为项目sssssssss执行步骤 ...
20:12:50: 配置没有改变, 跳过 qmake 步骤。
20:12:50: 正在启动 "D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"mingw32-make: Nothing to be done for 'first'.
20:12:51: 进程"D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
20:12:51: Removing directory C:\Users\Administrator\Documents\build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build
20:12:51: 正在启动 "D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:\Users\Administrator\Documents\build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build" installcopy /y libsssssssss.so C:\Users\Administrator\Documents\build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\libs\armeabi-v7a\libsssssssss.so
已复制 1 个文件。
20:12:52: 进程"D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
20:12:52: Starting: "D:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe" --input C:/Users/Administrator/Documents/build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-libsssssssss.so-deployment-settings.json --output C:/Users/Administrator/Documents/build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files (x86)/Java/jdk1.8.0_131" --ant D:/apache-ant-1.10.1/bin/ant.bat
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
过程试图写入的管道不存在。
Generating Android Package
Input file: C:/Users/Administrator/Documents/build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-libsssssssss.so-deployment-settings.json
Output directory: C:/Users/Administrator/Documents/build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build/
Application binary: C:/Users/Administrator/Documents/build-sssssssss-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/libsssssssss.so
Android build platform: android-25
Install to device: No
Buildfile: build.xml does not exist!
Build failed
Building the android package failed!
-- For more information, run this command with --verbose.
20:12:55: 进程"D:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project sssssssss (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
When executing step "Build Android APK"
20:12:55: Elapsed time: 00:05.How to solve this problem???????
-
Have you tried building with Gradle instead of Ant yet?
To activate Gradle for your project, open the Projects tab on left side in Qt Creator and select the Android Kit.
Then expand the "Build Android APK" section and activate the setting "Use Gradle".There's also a general option "Use Gradle instead of Ant" in the Devices -> Android section of your Qt Creator options / preferences.
Please make sure to create a fresh and clean build from scratch after activating Gradle.Hope this helps!
Cheers,
GT