提问者:小点点

由于脏cmake版本,Android项目无法构建


我不能再构建我的项目了。我总是遇到这个gradle同步问题:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Invalid revision: 3.18.1-g262b901-dirty

* 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.

这些是我尝试过但没有解决问题的事情:

  • 重新安装Cmake版本3.18.1
  • 尝试清理我的缓存

此外,我不能在这里使用解决方案(这建议降级我的Cmake版本),因为我必须使用3.18.1。

有什么建议吗?


共1个答案

匿名用户

正如这里提到的,我最终将我的Cmake版本从3.18.1降级到3.6.4111459。唯一的区别是我不必在我的local.properties文件中添加cmake. dir