Search Unity

Unity Ads Package 3.4.2 Error. Can't build. Pls Help!

Discussion in 'Unity Ads & User Acquisition' started by Ianaa, Mar 7, 2020.

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

    Ianaa

    Joined:
    Jul 15, 2018
    Posts:
    41
    Updated through Package Manager to 3.4.2. Then I get this. What does this even mean?

    Library/PackageCache/com.unity.ads@3.4.2/Runtime/Monetization/AndroidPlacementContentOperations.cs(101,41): error CS0433: The type 'IUnityLifecycleManager' 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'
     
    majacekic and xN1ckuz like this.
  2. antony_morar

    antony_morar

    Joined:
    Nov 7, 2017
    Posts:
    12
    I have the same problem. Please help
     
  3. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    It looks like 'IUnityLifecycleManager' has become duplicated in your projects, possibly because of an error during the import process.

    Can you try the following?
    • Remove the Advertisement package completely, then add it again.
    • If that doesn't work, try running Reimport All from the Assets menu.
     
  4. Ianaa

    Ianaa

    Joined:
    Jul 15, 2018
    Posts:
    41
    Regarding this suggestion, I happened to face an issue where after removing the Unity Ads Package from the Package Manager, it simply can't be found again for me to even add it back. How should I add it back? Thanks. (Unity 2018.4.18f1)
     

    Attached Files:

    darshan-kirubakaran likes this.
  5. Ianaa

    Ianaa

    Joined:
    Jul 15, 2018
    Posts:
    41
    Package Manager don't even have Unity Ads left.
     

    Attached Files:

  6. sbankhead

    sbankhead

    Unity Technologies

    Joined:
    Jul 27, 2014
    Posts:
    97
    I can see advertisements in your 10.21.40 PM image, the other image you need to scroll up to see it. That error you originally got is because you have more than 1 copy of advertisements in your project. You likely installed it from the asset store and package manager. you should only install from 1 source, and ideally you should switch to package manager so that its easy to update in the future.
     
    JayThanki13 likes this.
  7. antony_morar

    antony_morar

    Joined:
    Nov 7, 2017
    Posts:
    12
    I removed and reimported Advertisement package completely, doesn't work for me.

    The error occurs in the Advertisement 3.4.2 version
     
  8. Samura

    Samura

    Joined:
    Mar 13, 2019
    Posts:
    1
    I managed to solve it like this:

    - I Deleted the Unity Ads package from my Assets folder;
    - I removed the Advertisement package (Window / Package Manager / Advertisement / Remove);
    - I went to the Asset Store and imported the Unity Monetization package again;

    It worked for me and the errors disappeared
     
  9. Abel29

    Abel29

    Joined:
    Mar 24, 2020
    Posts:
    14
    Thank you man! It worked for me too
     
    BuildByte and DanilLetov like this.
  10. MartyGP

    MartyGP

    Joined:
    Dec 29, 2019
    Posts:
    4
    Hi guys.

    This has happened for all of my games since upgrading to the new version - 2019.3.10f1.

    Is this a known issue? I can solve by removing Assets>Unity Ads, and the games will run, but I still have a ton of errors and I'm worried that ultimately there will be more issues down the line...
     
    mdrafik27 likes this.
  11. Newca_Coder

    Newca_Coder

    Joined:
    Apr 27, 2020
    Posts:
    2
    Hi all,

    This issue is still persisting for me too... This is a definite fix though. It worked for me
     
  12. Elvizcocho

    Elvizcocho

    Joined:
    Dec 24, 2017
    Posts:
    15
    It worked for me too but then i have this error:

    Please consider upgrading to the Packman Distribution of the Unity Ads SDK. The Asset Store distribution will not longer be supported after Unity 2018.3

    Ten what i do is to window>Package Manager>Advertisement and install the 3.4.7. BUTTT; when i do this it returns the error of this post title. you have some ideas on how to solve it?
     
  13. Elvizcocho

    Elvizcocho

    Joined:
    Dec 24, 2017
    Posts:
    15

    I solved by deleting all the folders of unity asset and activate it from package manager like in this video...

     
  14. KyleAllwood07

    KyleAllwood07

    Joined:
    Jul 13, 2020
    Posts:
    1
    Thank You SOOOO MUCH!!
     
  15. Sayoo3

    Sayoo3

    Joined:
    Jun 3, 2020
    Posts:
    1
    Do we install from package manager and does it affect the ads you have set up?
     
    realgamingart likes this.
  16. realgamingart

    realgamingart

    Joined:
    Apr 10, 2014
    Posts:
    20
    If you will Install the Unity Ads from the Package Manager then It will be nice for you because in this way you can easily update the unity ads when the update is available with just one button and Delete all the unity Ads folder from your Asset folder.
    I am sure it will work for you ..............
     
  17. SubicaBubica

    SubicaBubica

    Joined:
    Aug 9, 2020
    Posts:
    4
    Thanks unity, very nice!!
     
  18. OwlTeaGames

    OwlTeaGames

    Joined:
    May 21, 2015
    Posts:
    11
    worked for me!
     
  19. xpxilom

    xpxilom

    Joined:
    Aug 28, 2014
    Posts:
    30
    Gracias
     
  20. bhautik74jikadra

    bhautik74jikadra

    Joined:
    Aug 7, 2018
    Posts:
    3
    Find the folder named Plugins from the Asset folder and delete them and import the package again. Your problem will be solved.

    #B2- Bhautik Jikadra
     
  21. bhautik74jikadra

    bhautik74jikadra

    Joined:
    Aug 7, 2018
    Posts:
    3

    Find the folder named Plugins from the Asset folder and delete them and import the package again. Your problem will be solved.

    #B2- Bhautik Jikadra
     
  22. mopsale7

    mopsale7

    Joined:
    Mar 18, 2021
    Posts:
    1
    Library\PackageCache\com.unity.ads@3.6.1\Runtime\Monetization\MonetizationPlatform.cs(113,13): error CS0433: The type 'Advertisement' exists in both 'UnityEngine.Advertisements.Editor, Version=2.1.6443.25318, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Advertisements, Version=3.6.1.0, Culture=neutral, PublicKeyToken=null'


    how to fix this I try all things Plugins from the Asset folder and delete them and import the package again
    but all so not fix I am using unity 2020.3
    any one can help me
     
  23. zheyuanzhou

    zheyuanzhou

    Joined:
    Oct 29, 2017
    Posts:
    22
    I face the same issue and error description. Then I select 2019 LTS, just import the Advertisement from the package Manager instead of the SDK from the Asset Store, follow the Unity Guide example which can work for me. I guess the interface about the AD and class has included inside that package
     
  24. wakkas54

    wakkas54

    Joined:
    Apr 25, 2021
    Posts:
    1
    it also worked for me thanks alot
     
  25. Unitynew1410

    Unitynew1410

    Joined:
    May 8, 2021
    Posts:
    1
    help --> reset packages default -- > done .
     
    NCLTA likes this.
  26. ijeanpierrebp

    ijeanpierrebp

    Joined:
    Dec 3, 2017
    Posts:
    2
    This work for me, thankss!
     
Thread Status:
Not open for further replies.