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. Dismiss Notice

How to Fix Unity Advertisement Error CS0433!!!!!

Discussion in 'Unity Ads & User Acquisition' started by ramy660066, Aug 25, 2020.

  1. ramy660066

    ramy660066

    Joined:
    May 23, 2020
    Posts:
    4
    i have this error when i add ads to my project how i can fix it please
    i tried everything but i still dont know
    ads pic.jpg

    library packagecache com.unity.ads@3.4.9 runtime\monetization monetizationplatform.cs(33,17): error cs0433: the type 'unitylifecyclemanager' exists in both 'unityengine.advertisements.editor, version=3.4.6.0
     
  2. sbankhead

    sbankhead

    Unity Technologies

    Joined:
    Jul 27, 2014
    Posts:
    97
    You have two versions of our sdk installed in your project, 3.4.9 via package manager and 3.4.6 via some other distribution. My guess is you previously had the asset store version installed in your project. Try removing the asset store implementation and use the package manager version going forward. Its much easier to upgrade and downgrade from within package manager ui.
     
    ramy660066 likes this.
  3. ramy660066

    ramy660066

    Joined:
    May 23, 2020
    Posts:
    4
    Thanks for answer
    its working :))
     
    Last edited: Aug 25, 2020