无法在Android Studio中使用GIT

时间:2014-09-29 12:29:07

标签: git android-studio

Android工作室不断向我提供错误对话框,"未检测到任何更改"当我把我的更改提交到GIT存储库时。

当我查看事件日志时,我会看到此日志:

com.intellij.openapi.vcs.VcsException: dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
           Referenced from: /usr/local/git/bin/git
           Expected in: /usr/lib/libSystem.B.dylib
           dyld: Symbol not found: ___strlcpy_chk
           Referenced from: /usr/local/git/bin/git
           Expected in: /usr/lib/libSystem.B.dylib
           during executing git log HEAD --branches --remotes --tags --encoding=UTF-8 --full-history --sparse --max-count=2000 --pretty=format:%x01%H%x02%ct%x02%an%x02%at%x02%ae%x02%cn%x02%ce%x02%P%x02%s%x02%b%x02%B%x03 --encoding=UTF-8 --full-history --sparse --: com.intellij.openapi.vcs.VcsException: dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
           Referenced from: /usr/local/git/bin/git
           Expected in: /usr/lib/libSystem.B.dylib
           dyld: Symbol not found: ___strlcpy_chk
           Referenced from: /usr/local/git/bin/git
           Expected in: /usr/lib/libSystem.B.dylib
           during executing git log HEAD --branches --remotes --tags --encoding=UTF-8 --full-history --sparse --max-count=2000 --pretty=format:%x01%H%x02%ct%x02%an%x02%at%x02%ae%x02%cn%x02%ce%x02%P%x02%s%x02%b%x02%B%x03 --encoding=UTF-8 --full-history --sparse --

任何人都可以解释这个和/或提供解决方案吗?

1 个答案:

答案 0 :(得分:0)

根据this answer,您应该从xCode安装命令行工具

打开xCode并点击 ctrl + ,然后点击Downloads