Library PackageCache Error

When attempting to build my project, the build attempt fails and the console comes up with this error.
Library\PackageCache\com.unity.analytics@3.2.2\DataPrivacy\DataPrivacyButton.cs(28,13): warning CS0618: ‘Application.ExternalEval(string)’ is obsolete: ‘Application.ExternalEval is deprecated. See Unity - Manual: Interaction with browser scripting for alternatives.’

I haven’t been able to find an answer and would love to get this fixed. Thanks.

1 Like

Did you try deleting your Library and letting Unity re-create it? Alternatively, you might be able to fix it by selecting Help —> Reset Packages to defaults in the menu.

15 Likes

tnx

2 Likes

I fixed it by going into Window, Package Manager and I updated the component causing the error.

1 Like

Resetting didn’t work for me, and I have 96 of these errors, all for different things.

This is just getting sad now.

Thank you very much, you helped me a lot

2 Likes

Library/PackageCache/com.unity.timeline@1.4.8/DocCodeExamples/TimelineAttributesExamples.cs(25,53): error CS0246: The type or namespace name ‘ActionContext’ could not be found (are you missing a using directive or an assembly reference?) is my error. NEED FIX PLS
Edit: this is a pls help forum haha

Library\PackageCache\com.unity.package-manager-ui@1.9.11\Editor\Sources\UI\PackageList.cs(56,35): error CS0246: The type or namespace name ‘DetachFromPanelEvent’ could not be found (are you missing a using directive or an assembly reference?) PLSS HELP!!!

this saved me

Library\PackageCache\com.unity.collab-proxy@1ec4e416a4af\Editor\Developer\UpdateReport\UpdateReportDialog.cs(86,13): error CS0122: ‘SplitterState’ is inaccessible due to its protection level
how do I fix this error