【问题标题】:Trouble using GIT with Android Studio在 Android Studio 中使用 GIT 时遇到问题
【发布时间】:2014-11-23 20:23:14
【问题描述】:

当我将更改提交到 GIT 存储库时,Android Studio 不断给我错误对话框“未检测到更改”。

当我查看事件日志时,我看到了这个日志:

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 --

谁能解释这一点和/或提供解决方案?

【问题讨论】:

    标签: git android-studio


    【解决方案1】:

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

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

    【讨论】:

    • xCode?真的吗?我会试试这个,但这让我大吃一惊
    • 您也可以在我提供的链接中尝试其他答案。有些人通过更新.bash_profile 解决了这个问题
    • 是的,在更新 .bash_profile 时看到了那些答案,但它们对我来说是希腊语
    猜你喜欢
    • 2022-01-24
    • 1970-01-01
    • 2017-10-16
    • 2018-12-22
    • 2016-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多