背景:
今天一位小老弟的Qt for android的电脑的编译环境坏了,编译安卓程序不成功,提示的错误:
Where:
Build file 'F:\test\build-test001-Android_for_armeabi_v7a_Clang_Qt_5_13_0_for_Android_ARMv7-Debug\android-build\build.gradle' line: 39
* What went wrong:
A problem occurred evaluating root project 'android-build'.
> Invalid revision: 30.0.0-preview
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
问题分析及解决:
查询以上问题的原因在stack overflow上找到曾有大佬在AS上遇到问题是sdk版本原因,后来查看了一下小老弟的android的SDK,后面果然发现小老弟安装了好多版本的android buildtools,然后我打开自己的电脑进行包的比对。 后来将不一样的包全都删除掉了,然后清除了工程。最后编译通过。
我们安装的版本是Qt5.13
后来留下了