ZhYQ-Note

unity: tasks 教程导入素材报错

An error occurred while resolving packages:
  Project has invalid dependencies:
    com.unity.package-manager-ui: Package [com.unity.package-manager-ui@2.1.2] cannot be found
  Package com.unity.textmeshpro@2.0.0 has invalid dependencies:
    com.unity.ugui: Package [com.unity.ugui@1.0.0] cannot be found
Assembly has reference to non-existent assembly \'Unity.ugui\' (Packages/com.unity.textmeshpro/Scripts/Editor/Unity.TextMeshPro.Editor.asmdef)

解决:

Were you porting the project from an older Unity version? Anyway, the solution for me was to go to: C:\Users\username\Documents\MyProject\Packages (Or simply your project folder) and deleting manifiest.json. If it doesnt help, try pasting in between the lines of the manifiest.json file this line of code: 
"com.unity.package-manager-ui": "2.1.2",

把工程目录下的Packages目录中的manifest.json删掉,然后会自动重新生成就可以了

 

参考:

Package [com.unity.package-manager-ui@2.1.2] cannot be found

https://answers.unity.com/questions/1626849/package-manager-missing-unity-201910f2.html

分类:

技术点:

相关文章:

  • 2021-12-25
  • 2021-05-19
  • 2022-12-23
  • 2021-05-08
  • 2021-09-01
  • 2022-01-19
  • 2021-12-18
  • 2021-11-16
猜你喜欢
  • 2021-05-10
  • 2022-01-01
  • 2021-06-14
  • 2022-01-02
  • 2021-12-15
  • 2021-09-20
  • 2021-04-17
相关资源
相似解决方案