Omer
Omer

Reputation: 39

Unity errors after updating

l updated unity and now l am having the following error log.

[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\Services\Interfaces\IOperationFactory.cs'.
[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\Services\Packages\PackageOrigin.cs'.
[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\UI\PackageItem.cs'.
[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\Services\Packages\PackageGroupOrigins.cs'.
[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\UI\Common\Alert.cs'.
[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\UI\PackageDetails.cs'.
[Failure] Could not find file 'C:\Users\Omer\Documents\New Unity Project\Packages\com.unity.package-manager-ui\Editor\Sources\Services\Packages\PackageState.cs'.

Upvotes: 1

Views: 2438

Answers (4)

William Whitehouse
William Whitehouse

Reputation: 91

I had this same issue, the easiest way to fix this is to delete all the caches so Unity will re-download and compile them again.

  1. Make sure Unity is closed.

  2. Delete the Library folder from your project. In your case just delete C:\Users\Omer\Documents\New Unity Project\Library

  3. Delete the AppData cache. Search %appdata% in the Windows search, delete the packages folder in roaming - AppData\Roaming\Unity\Packages. Also delete the packages folder in the local folder - AppData\Local\Unity\cache\packages

  4. Restart Unity and wait for it to re-download and compile the packages, this should fix the errors.

Upvotes: 0

karlog
karlog

Reputation: 11

This issue that you are facing is because Unity resolved the packages after Unity update but could not compile them correctly.

To fix this, just delete the PackageCache folder inside the Library folder of your Unity Project while having Unity Editor closed and then When you re-open Unity, it will re-download those package files.

Just delete - C:\Users\Omer\Documents\New Unity Project\Library\PackageCahce\

Upvotes: 1

Justin Fiset
Justin Fiset

Reputation: 92

You can try to delete and to reinstall your all your packages, this will install the latest version of the package optimized for the unity latest version.

You can use the package manager windows to do this. If this is not working you just have to come back to your old unity version.

PS: Do not forget to restart unity after reinstalling all packages.

Upvotes: 1

Nícolas
Nícolas

Reputation: 416

this happened to me too, i tried to restart or even reinstall unity, but it seems that the only way to avoid this error is by deleting and reimporting the packages

Upvotes: 0

Related Questions