0

I cannot build my project anymore. I always get this gradle sync issue:

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.

These are things I tried but did not resolve the issue:

Also, I cannot use the solution here (which suggests downgrading my CMake version) because I got to use 3.18.1.

Any suggestions please?

user1506104
  • 6,554
  • 4
  • 71
  • 89
  • No. I linked that too in my question. – user1506104 Mar 10 '23 at 12:48
  • When you create an empty project (and add some native code so cmake is used) does it compile? – zomega Mar 10 '23 at 12:53
  • can you please run with `--stacktrace` and `--debug` or `--scan` and show us the output? Right now it's not clear to me as someone who has little gradle experience and no android dev background that this has anything to do with CMake. – starball Mar 10 '23 at 18:44
  • @zomega I created a brand new native project, i got the same error. – user1506104 Mar 11 '23 at 11:46

1 Answers1

0

I ended up downgrading my CMake version from 3.18.1 to 3.6.4111459 as mentioned here. The only difference is that I did not have to add cmake.dir in my local.properties file.

user1506104
  • 6,554
  • 4
  • 71
  • 89