Error while building/deploying project vibrator (kit: Android for armeabi-v7a (G
14:29:32: 为项目vibrator执行步骤 ...
14:29:32: 配置没有改变, 跳过 qmake 步骤。
14:29:32: Removing directory D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build
14:29:32: 正在启动 "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build" install
copy /y libvibrator.so D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\libs\armeabi-v7a\libvibrator.so
已复制 1 个文件。
14:29:33: 进程"C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
14:29:33: 正在启动 "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"
mingw32-make: Nothing to be done for 'first'.
14:29:34: 进程"C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
14:29:34: Starting: "C:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe" --input D:/andriod/vibrator/vibrator/build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-libvibrator.so-deployment-settings.json --output D:/andriod/vibrator/vibrator/build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build --deployment bundled --android-platform android-25 --jdk "D:/Program Files/Java/jdk1.8.0_121" --ant C:/TDDownload/apache-ant-1.10.1/bin/ant.bat
'xcopy' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Generating Android Package
Input file: D:/andriod/vibrator/vibrator/build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-libvibrator.so-deployment-settings.json
Output directory: D:/andriod/vibrator/vibrator/build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build/
Application binary: D:/andriod/vibrator/vibrator/build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/libvibrator.so
Android build platform: android-25
Install to device: No
Buildfile: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at D:\Users\admin\AppData\Local\Android\android-sdk
-setup:
[echo] Project Name: QtApp
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 25.0.2
[echo] Resolving Build Target for QtApp...
[gettarget] Project Target: Android 7.1.1
[gettarget] API level: 25
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin\res
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin\rsObj
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin\rsLibs
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\gen
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin\classes
[mkdir] Created dir: D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for QtApp...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 2 AIDL files.
[aidl] Compiling 2 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 11 source files to D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\bin\classes
[javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
[javac] D:\andriod\vibrator\vibrator\build-vibrator-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug\android-build\src\mklm\qt\vibratortest.java:26: 错误: 找不到符号
[javac] private static ExtendsQtWithJava m_instance;
[javac] ^
[javac] 符号: 类 ExtendsQtWithJava
[javac] 位置: 类 vibratortest
[javac] 注: 某些输入文件使用或覆盖了已过时的 API。
[javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[javac] 1 个错误
[javac] 3 个警告
BUILD FAILED
D:\Users\admin\AppData\Local\Android\android-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
D:\Users\admin\AppData\Local\Android\android-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
Total time: 1 second
Building the android package failed!
-- For more information, run this command with --verbose.
14:29:38: 进程"C:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project vibrator (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
When executing step "Build Android APK"
14:29:38: Elapsed time: 00:06.