Qt配置Android环境

1. 安装下载&安装JDK

1
2
3
https://www.oracle.com/java/technologies/downloads/

https://www.oracle.com/java/technologies/downloads/#java8-windows

2.Command-line Tools (latest) 版本过高

1
https://dl.google.com/android/repository/commandlinetools-win-9123335_latest.zip

3.修改sdk_definitions.json文件

需要将QtCreator的sdk_definitions.json文件修改一下

“cmdline-tools;latest” 修改为 “cmdline-tools;6.0”。好像7.0也行。

image-20240517164208294