前言
qt开发安卓环境的搭建十分重要,qt对相关依赖有严格的控制,如官方文档所述
一、必要条件
1. NDK版本
Qt version | NDK version | Toolchain |
---|
Qt 5.14.0 or later Qt 5.13.2 or later Qt 5.12.6 or later | NDK r20b or r21 | android-clang | Qt 5.12.0 to 5.12.5 Qt 5.13.0 to 5.13.1 | NDK r19c | android-clang | Qt 5.11 and earlier | NDK r10e | GCC toolchain |
2. JDK版本
- JDK 11 or earlier must be used when using Qt for Android.
- Gradle is delivered with Qt 5.9, and later.;Using Ant to build APKs is no longer supported.
- Qt Creator 4.12 or later can set up the SDK Tools, NDK, and essential packages automatically.
- If you are using the SDK Tools 26.x or below, the JDK 8 is required. Versions higher than 8 might cause issues
- If your Qt version is earlier than v5.9, use the SDK tools package v25.2.5 or earlier.
二、下载地址
旧版NDK下载地址 JDK下载地址
官方文档:
https://doc.qt.io/qt-5/android-getting-started.html
|