Android build platform: android-19
Install to device: No
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android-build'.
> failed to find Build Tools revision 25.0.2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.138 secs
Warning: QML import could not be resolved in any of the import paths: com.leamus.gamedata
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
Building the android package failed!
-- For more information, run this command with --verbose.
15:25:14: 进程"D:\Programs\Programming\Qt\Qt\Qt5.9.1\5.9.1\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project Qt_English (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.1 for Android armv7))
When executing step "Build Android APK"
15:25:14: Elapsed time: 00:56.
make: Nothing to be done for 'first'.
15:08:13: 进程"/usr/bin/make"正常退出。
15:08:13: Removing directory /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build
15:08:14: 正在启动 "/usr/bin/make" INSTALL_ROOT=/home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build install
/home/andrew/Qt5.9.3/5.9.3/android_armv7/bin/qmake -install qinstall -exe release/libQGroundControl.so /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/libs/armeabi-v7a/libQGroundControl.so
15:08:20: 进程"/usr/bin/make"正常退出。
15:08:21: Starting: "/home/andrew/Qt5.9.3/5.9.3/android_armv7/bin/androiddeployqt" --input /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-libQGroundControl.so-deployment-settings.json --output /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build --deployment bundled --android-platform android-27 --jdk /usr/local/android/jdk-10 --ant /usr/local/android/apache-ant-1.10.2/bin/ant
Warning: QML import could not be resolved in any of the import paths: QGroundControl
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenTools
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controls
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Palette
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FactControls
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controllers
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FactSystem
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Vehicle
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FlightMap
Warning: QML import could not be resolved in any of the import paths: QGroundControl.SettingsManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ArduPilot
Warning: QML import could not be resolved in any of the import paths: QGroundControl.PX4
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenToolsController
Warning: QML import could not be resolved in any of the import paths: QGroundControl.MultiVehicleManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCPositionManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QgcQtGStreamer
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCMapEngineManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FlightDisplay
Warning: QML import could not be resolved in any of the import paths: QGroundControl.AutoPilotPlugin
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
Generating Android Package
Input file: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-libQGroundControl.so-deployment-settings.json
Output directory: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/
Application binary: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/release/libQGroundControl.so
Android build platform: android-27
Install to device: No
Buildfile: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/build.xml
-build-setup:
[getbuildtools] Using latest Build Tools: 27.0.3
[echo] Resolving Build Target for QtApp...
[gettarget] Project Target: Android 8.1.0
[gettarget] API level: 27
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/bin
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/bin/res
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/bin/rsObj
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/bin/rsLibs
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/gen
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/bin/classes
[mkdir] Created dir: /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/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
-compile:
[javac] Compiling 21 source files to /home/andrew/src/build-qgroundcontrol-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Release/android-build/bin/classes
[javac] error: Source option 5 is no longer supported. Use 6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.
BUILD FAILED
/usr/local/android/android-sdk-linux/tools/ant/build.xml:716: The following error occurred while executing this line:
/usr/local/android/android-sdk-linux/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 6 seconds
Building the android package failed!
-- For more information, run this command with --verbose.
15:08:46: 进程"/home/andrew/Qt5.9.3/5.9.3/android_armv7/bin/androiddeployqt"退出,退出代码 14 。
Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.3 for Android armv7))
When executing step "Build Android APK"
15:08:46: Elapsed time: 00:35.
make: Nothing to be done for `first'.
21:48:54: 进程"/usr/local/android/android-ndk-r12b/prebuilt/linux-x86_64/bin/make"正常退出。
21:48:54: Removing directory /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/assets
21:48:54: Removing directory /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/libs
21:48:55: 正在启动 "/usr/local/android/android-ndk-r12b/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build install
/home/bilson/Qt5.11.3/5.11.3/android_armv7/bin/qmake -install qinstall -exe release/libQGroundControl.so /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/libs/armeabi-v7a/libQGroundControl.so
21:48:55: 进程"/usr/local/android/android-ndk-r12b/prebuilt/linux-x86_64/bin/make"正常退出。
21:48:55: Starting: "/home/bilson/Qt5.11.3/5.11.3/android_armv7/bin/androiddeployqt" --input /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-libQGroundControl.so-deployment-settings.json --output /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build --android-platform android-16 --jdk /usr/local/android/jdk1.8.0_221 --gradle
Generating Android Package
Input file: /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-libQGroundControl.so-deployment-settings.json
Output directory: /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/
Application binary: /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/release/libQGroundControl.so
Android build platform: android-16
Install to device: No
Warning: QML import could not be resolved in any of the import paths: QGroundControl
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenTools
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controls
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Palette
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FactControls
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FactSystem
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FlightMap
Warning: QML import could not be resolved in any of the import paths: QGroundControl.MultiVehicleManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Vehicle
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCPositionManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.SettingsManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QgcQtGStreamer
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controllers
Warning: QML import could not be resolved in any of the import paths: QGroundControl.AutoPilotPlugin
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ShapeFileHelper
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FlightDisplay
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Airspace
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Airmap
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenToolsController
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCMapEngineManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.PX4
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ArduPilot
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
External library /home/bilson/submit/qgc_android/qgroundcontrol/libs/AndroidOpenSSL/arch-armeabi-v7a/lib/libcrypto.so does not exist!
-- Skipping /home/bilson/Qt5.11.3/5.11.3/android_armv7/plugins/position/libqtposition_serialnmea.so. It has unmet dependencies: lib/libQt5SerialPort.so.
21:48:56: 进程"/home/bilson/Qt5.11.3/5.11.3/android_armv7/bin/androiddeployqt"退出,退出代码 10 。
Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.3 for Android ARMv7))
When executing step "Build Android APK"
21:48:56: Elapsed time: 00:02.
同时我在build.gradle中将sdk version 改为跟qt环境中的一致,都是16,还是报错
compileSdkVersion 16//androidCompileSdkVersion.toInteger()
make: Nothing to be done for `first'.
21:48:54: 进程"/usr/local/android/android-ndk-r12b/prebuilt/linux-x86_64/bin/make"正常退出。
21:48:54: Removing directory /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/assets
21:48:54: Removing directory /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/libs
21:48:55: 正在启动 "/usr/local/android/android-ndk-r12b/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build install
/home/bilson/Qt5.11.3/5.11.3/android_armv7/bin/qmake -install qinstall -exe release/libQGroundControl.so /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/libs/armeabi-v7a/libQGroundControl.so
21:48:55: 进程"/usr/local/android/android-ndk-r12b/prebuilt/linux-x86_64/bin/make"正常退出。
21:48:55: Starting: "/home/bilson/Qt5.11.3/5.11.3/android_armv7/bin/androiddeployqt" --input /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-libQGroundControl.so-deployment-settings.json --output /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build --android-platform android-16 --jdk /usr/local/android/jdk1.8.0_221 --gradle
Generating Android Package
Input file: /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-libQGroundControl.so-deployment-settings.json
Output directory: /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/android-build/
Application binary: /home/bilson/submit/qgc_android/build-qgroundcontrol-Android_release/release/libQGroundControl.so
Android build platform: android-16
Install to device: No
Warning: QML import could not be resolved in any of the import paths: QGroundControl
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenTools
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controls
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Palette
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FactControls
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FactSystem
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FlightMap
Warning: QML import could not be resolved in any of the import paths: QGroundControl.MultiVehicleManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Vehicle
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCPositionManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.SettingsManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QgcQtGStreamer
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Controllers
Warning: QML import could not be resolved in any of the import paths: QGroundControl.AutoPilotPlugin
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ShapeFileHelper
Warning: QML import could not be resolved in any of the import paths: QGroundControl.FlightDisplay
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Airspace
Warning: QML import could not be resolved in any of the import paths: QGroundControl.Airmap
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ScreenToolsController
Warning: QML import could not be resolved in any of the import paths: QGroundControl.QGCMapEngineManager
Warning: QML import could not be resolved in any of the import paths: QGroundControl.PX4
Warning: QML import could not be resolved in any of the import paths: QGroundControl.ArduPilot
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
External library /home/bilson/submit/qgc_android/qgroundcontrol/libs/AndroidOpenSSL/arch-armeabi-v7a/lib/libcrypto.so does not exist!
-- Skipping /home/bilson/Qt5.11.3/5.11.3/android_armv7/plugins/position/libqtposition_serialnmea.so. It has unmet dependencies: lib/libQt5SerialPort.so.
21:48:56: 进程"/home/bilson/Qt5.11.3/5.11.3/android_armv7/bin/androiddeployqt"退出,退出代码 10 。
Error while building/deploying project qgroundcontrol (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.3 for Android ARMv7))
When executing step "Build Android APK"
21:48:56: Elapsed time: 00:02.
同时我在build.gradle中将sdk version 改为跟qt环境中的一致,都是16,还是报错
compileSdkVersion 16//androidCompileSdkVersion.toInteger()