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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM