栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 游戏开发 > Unity3D

Unity 报错No ‘git‘ executable was found. Please install Git on your system then restart

Unity3D 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Unity 报错No ‘git‘ executable was found. Please install Git on your system then restart

亲测可用。

An error occurred while resolving packages:Project has invalid dependencies:
  com.unity.xxx: No 'git' executable was found. Please install Git on your     system then restart Unity and Unity Hub

在我们使用PackageManager时,Unity允许我们使用Git上的package(点击加号,选择add package from git URL,或者是直接在Asset/Packages/manifest.json中添加包名)。

但是这种操作需要我们事先装好git,并且配置好相应的环境变量,否则会报错。

解决方法:

1.下载,安装Git。 Git - Downloads

2.配置系统环境变量。我这里使用的是win7,所以在path后面继续加入路径的时候,需要使用英文分号分割;C:Program FilesGitbin(注意这个路径需要定位到git.exe)  , 如下图

3.重新打开cmd,输入git测试成功。

4.重新打开unity和unity hub,如果仍然报错,去系统进程看看,是否没有把untiy或者unity hub彻底关掉。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/900589.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号