You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio克隆GitLab项目报错:Unencrypted HTTP is not supported for Gitlab

解决Android Studio克隆GitLab HTTP项目报错问题
  • 调整内置Git配置

    1. 打开Android Studio,依次进入File > Settings > Version Control > Git
    2. 点击右侧Test按钮,确认Git执行路径能正常调用
    3. 打开底部Terminal标签,输入以下命令(替换成你的GitLab地址前缀):
      git config --global http.sslVerify false
      git config --global url."http://你的GitLab地址前缀/".insteadOf "https://你的GitLab地址前缀/"
      
    4. 重新执行克隆操作
  • 修改GitLab服务器配置

    1. 进入File > Settings > Version Control > GitLab
    2. 编辑当前的GitLab服务器条目,确认URL为你使用的HTTP地址,勾选Allow insecure connections (HTTP)选项(若存在)
    3. 保存配置后重试克隆
  • 检查系统级Git配置(若使用系统Git而非Android Studio内置版本)
    直接在系统终端执行上述两条git config命令,重启Android Studio后尝试克隆

内容的提问来源于stack exchange,提问作者Shwetha P

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 05:20:23