Error:(6, 0) CreateProcess error=2, 系统找不到指定的文件。 <a href="openFile:D:\phphub\phphub-android\app\build

荀增
2023-12-01

Error:(6, 0) CreateProcess error=2, 系统找不到指定的文件。 <a href="openFile:D:\phphub\phphub-android\app\build.gradle">Open File</a>


指向了对应build.gradle中的下面这句话:

def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()



解决方法:

Environment Variables > System Variables > Select "PATH" > Click Edit > Paste ;C:\Program Files\Git\bin;C:\Program Files\Git\cmd
Your install location may vary.

https://github.com/nickbutcher/plaid/issues/17



 类似资料: