Qt5.9 LTS 安卓环境搭建

Qt5.9 LTS 安卓环境搭建

1. Qt安装时 需要勾选安卓编译环境

2. Java SDK:1.8

下载地址: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html

3. Android SDK:

下载地址: https://www.androiddevtools.cn/android-sdk_r24.4.1-windows.zip 这不是最新版,可以在软件里更新安装需要的安卓SDK版本

https://upload-images.jianshu.io/upload_images/21852875-835a81dd14c35f50.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

https://upload-images.jianshu.io/upload_images/21852875-f8846349a55af973.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

https://upload-images.jianshu.io/upload_images/21852875-47451abf2f8ba21b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

4. Android NDK: 5.9对应安装版本r16b或者r17c,5.12对应版本r19

下载地址:https://developer.android.com/ndk/downloads 下载对应版本即可

https://upload-images.jianshu.io/upload_images/21852875-2096b0b36b102608.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

https://upload-images.jianshu.io/upload_images/21852875-fa2c0a17c692beaf.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

5. Qt Creator 设置环境路径

  • 路径不能有空格

https://upload-images.jianshu.io/upload_images/21852875-3493ec40dd28d76f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

https://upload-images.jianshu.io/upload_images/21852875-fcc6c59304e1023f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240