【发布时间】:2016-01-27 05:50:37
【问题描述】:
我从 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 的版本问题?
【问题讨论】:
-
我不知道根本原因,但似乎 Gradle 任务正在运行某个 Git 进程,但它是从 Git 存储库位置之外的目录运行的。
-
发布您的 settings.gradle。该日志讨论了一个 git 命令。很奇怪
-
可能你已经移动了你的源代码文件夹。
标签: android git gradle android-glide