Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Error CS0433: The type 'UnityLifecycleManager' exists in both 'UnityEngine.Advertisements.Editor

Discussion in 'Unity Ads & User Acquisition' started by LuksProject, Jun 20, 2020.

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

    LuksProject

    Joined:
    Apr 14, 2020
    Posts:
    3
    Hi,
    I updated my unity 2019.3.5 to Unity 2019.4 and I am having several errors.
    According to what I understand has to do with the Ads SDK, can someone tell me how to resolve this error?
    Thank you

    Code (CSharp):
    1. Library\PackageCache\com.unity.ads@3.4.5\Runtime\Monetization\MonetizationPlatform.cs(33,17): error CS0433: The type 'UnityLifecycleManager' exists in both 'UnityEngine.Advertisements.Editor, Version=3.4.2.0, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Advertisements, Version=3.4.2.0, Culture=neutral, PublicKeyToken=null'
     
    Tonymotion likes this.
  2. alexanderropot

    alexanderropot

    Joined:
    Jun 20, 2020
    Posts:
    8
    I have the same errrors
     
  3. sbankhead

    sbankhead

    Unity Technologies

    Joined:
    Jul 27, 2014
    Posts:
    97
    It looks like you have 2 copies of advertisements in your project. Do you have both the asset store distribution and package manager? You should only have 1.
     
  4. A_r_u_n

    A_r_u_n

    Joined:
    Apr 28, 2020
    Posts:
    1
    how to solve this problem
     
  5. xliquid

    xliquid

    Joined:
    Jan 29, 2020
    Posts:
    6
    unity tends to install the package manager version of the ADS SDK by itself (for some reason)
    To fix this: goto -> Windows -> Package manager -> Advertisement and hit remove, wait till it's done and boom, everything fixed :D
     
  6. RussianDraco

    RussianDraco

    Joined:
    Jul 25, 2020
    Posts:
    1
    Thank you very much! :)
     
  7. nextage575

    nextage575

    Joined:
    Nov 4, 2019
    Posts:
    20
    Worked for me,Thankyou
     
  8. steliostselos

    steliostselos

    Joined:
    Dec 19, 2020
    Posts:
    1
    this works ty :D
     
  9. BokmurCompany

    BokmurCompany

    Joined:
    Jan 14, 2021
    Posts:
    1
    Yes i fix it BUT when i ShowAD it say
    Object reference not set to an instance of an object
    UnityEngine.Advertisements.Utilities.UnityLifecycleManager.Initialize () (at <91220002a2fd403abd0d44e0c6cd5f2c>:0)
    HOW TO FIX IT???
     
    shacharoz likes this.
  10. ahmedaniss

    ahmedaniss

    Joined:
    Sep 18, 2019
    Posts:
    98
    problem fixed here :
     
Thread Status:
Not open for further replies.