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

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’

2 Likes

I have the same problem. Please help

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.
3 Likes

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)

5567809--574318--Screen Shot 2020-03-09 at 10.21.40 PM.png

1 Like

Package Manager don’t even have Unity Ads left.

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.

1 Like

I removed and reimported Advertisement package completely, doesn’t work for me.

The error occurs in the Advertisement 3.4.2 version

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

11 Likes

Thank you man! It worked for me too

2 Likes

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…

1 Like

Hi all,

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

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?

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

https://www.youtube.com/watch?v=2kJFrIs2I7g

Thank You SOOOO MUCH!!

2 Likes

Do we install from package manager and does it affect the ads you have set up?

1 Like

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 …

Thanks unity, very nice!!

worked for me!

Gracias

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