Gradle sync failed: Cause: error=2, No such file or directory

前端 未结 4 479
感情败类
感情败类 2021-01-17 23:56

I am trying to get the latest revision number of mercurial repository dynamically and have it in the versionName of the android app.

This is what I have in the grad

4条回答
  •  孤独总比滥情好
    2021-01-18 00:27

    The issue I had with this was that I'd messed up the path contained in my ~/.profile file.

    I solved it by running export PATH=/opt/local/bin:/opt/local/sbin:$PATH in my terminal to get back my ability to use vim. Then I just pasted the same command: export PATH=/opt/local/bin:/opt/local/sbin:$PATH into my ~/.profile.

    Invalidated the cache from Android Studio, and it worked like a charm.

    I hope this helps someone!

提交回复
热议问题