赞
踩
我们直接创建一个新项目,直接使用qt编译发生错误
在线安装了Android Qt 6.6,但构建需要更新的版本? |Qt论坛
发现外网已经有人问过和我一样的问题,甚至连报错的都一模一样
外网的原文是这样的
JDK 17 or 11 did not help,
however what i did is changed version of androidx.core:core in projectfolder/android/build.gradle on line 21:
from:
implementation 'androidx.core:core:1.10.1'
to:
implementation 'androidx.core:core:1.8.0'
thos i didnt try any versions in between like 1.9.0, i tried directly 1.8.0 which worked...
hope this help someone as Qt 6.6 for me does not like to use API 33
注意到,我们的编译文件夹下没有android文件夹,而是 android-build文件夹,进入之后也会找到build.gradle文件,将其中的代码如上文一样修改即可
我发现改了之后再开了一个全新的项目也不会报错了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。