Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Library PackageCache Error

Discussion in 'Editor & General Support' started by Sahil_Litt, Feb 16, 2020.

Thread Status:
Not open for further replies.
  1. Sahil_Litt

    Sahil_Litt

    Joined:
    Dec 10, 2018
    Posts:
    2
    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 https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html for alternatives.'



    I haven't been able to find an answer and would love to get this fixed. Thanks.
     
    myj-world likes this.
  2. nattybumppo

    nattybumppo

    Joined:
    Mar 28, 2017
    Posts:
    2
    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.
     
  3. saeedseyedi01

    saeedseyedi01

    Joined:
    Oct 28, 2020
    Posts:
    1
    tnx
     
    Dr1ver_12 and Idan13 like this.
  4. Carmelblob

    Carmelblob

    Joined:
    May 9, 2017
    Posts:
    5
    I fixed it by going into Window, Package Manager and I updated the component causing the error.
     
    alienide likes this.
  5. duckSPLASH

    duckSPLASH

    Joined:
    Jul 11, 2020
    Posts:
    14
    Resetting didn't work for me, and I have 96 of these errors, all for different things.

    This is just getting sad now.
     
  6. luxyry8

    luxyry8

    Joined:
    Jun 13, 2021
    Posts:
    1
    Thank you very much, you helped me a lot
     
    Dr1ver_12 and JonathanEtienne like this.
  7. CasaNu

    CasaNu

    Joined:
    Dec 21, 2021
    Posts:
    15
    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
     
    Last edited: Sep 4, 2022
  8. Smilegangsrb

    Smilegangsrb

    Joined:
    Jan 29, 2022
    Posts:
    1
    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!!!
     
  9. Idan13

    Idan13

    Joined:
    Oct 19, 2020
    Posts:
    1
    this saved me
     
Thread Status:
Not open for further replies.