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

前端 未结 4 443
感情败类
感情败类 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:36

    In my case using Linux Mint, I had to install nodejs in sudo mode.

    Android Studio runs the commands on the terminal as a super user, so I had nodejs installed on my user but not "root" (sudo).

    To install, I followed this instructions: https://github.com/nodesource/distributions/blob/master/README.md

提交回复
热议问题