gpt4 book ai didi

android - Glide Process 'command ' git'' 以非零退出值 128 完成

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:27:27 50 4
gpt4 key购买 nike

我已经从 Github 下载了 Glide,想在 Android studio 上测试程序。但是一旦我清理了项目,我就有了这个错误

Information:Gradle tasks [clean]
fatal: Not a git repository (or any of the parent directories): .git
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred evaluating settings 'glide-master'.
> Process 'command 'git'' finished with non-zero exit value 128
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Information:BUILD FAILED
Information:Total time: 0.28 secs
Error:fatal: Not a git repository (or any of the parent directories): .git

FAILURE: Build failed with an exception.

* Where:
Settings file '/Users/MyComputer/Downloads/glide-master/settings.gradle' line: 1

* What went wrong:
A problem occurred evaluating settings 'glide-master'.
> Process 'command 'git'' finished with non-zero exit value 128

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Information:1 error
Information:0 warnings
Information:See complete output in console

错误是什么意思?我已经使用 Gradle 构建了。这是因为 Android studio 上的版本问题吗?

最佳答案

我也出现同样的错误。

在build.gradle之前的代码中

exec {
commandLine 'git', 'describe', '--tags'
}

然后我在 'git' 之前添加了 'cmd'

那个错误消失了。

下面是添加代码后的代码

exec {
commandLine 'cmd', 'git', 'describe', '--tags'

}

关于android - Glide Process 'command ' git'' 以非零退出值 128 完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35029768/

50 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com