问题记录——Unity PackageManager下载失败
报错Log为:
Cannot connect to ‘download.staging-packages.unity.com:443’ (error code: ENOTFOUND).
“staging-packages.unity.com”这个地址也不知道从哪来的
推测可能是我的项目从2018版本升上来,manifest文件没有正确兼容的原因
解决方案
打开工程Assets同级目录Packages下的manifest.json文件
"testables": [
"com.unity.collections",
"com.unity.entities",
"com.unity.jobs"
],
"registry": "https://staging-packages.unity.com"
将 “registry”: "https://staging-packages.unity.com"直接删除,可能也要删除掉上一个对象的’,’,保证Json格式的正确
Reference
https://forum.unity.com/threads/cant-update-package-enotfound.894466/